diff --git a/scripts/deploy/post/apex/1_set_up_qa_user.apex b/scripts/deploy/post/apex/1_set_up_qa_user.apex index eb757a9c..584c7755 100644 --- a/scripts/deploy/post/apex/1_set_up_qa_user.apex +++ b/scripts/deploy/post/apex/1_set_up_qa_user.apex @@ -18,8 +18,12 @@ if (foundProfiles.isEmpty()) { User qaUser = foundUsers[0]; Profile minloproProfile = foundProfiles.get(0); -// Switch to custom profile; -update new User(Id = qaUser.Id, ProfileId = minloproProfile.Id); +// Switch to custom profile + update QA user details; +update new User( + Id = qaUser.Id, + ProfileId = minloproProfile.Id, + UserPermissionsKnowledgeUser = true +); // Assign PSG intended for internal users; PermissionSetService service = PermissionSetService.getInstance(); diff --git a/scripts/deploy/post/apex/2_set_up_org_admin.apex b/scripts/deploy/post/apex/2_set_up_org_admin.apex index dd205e50..6697dc91 100644 --- a/scripts/deploy/post/apex/2_set_up_org_admin.apex +++ b/scripts/deploy/post/apex/2_set_up_org_admin.apex @@ -10,7 +10,8 @@ update new User( Country = 'United States', UserPermissionsKnowledgeUser = true, ExternalId__c = UserInfo.getUserName(), - UserPreferencesHasSentWarningEmail = true + UserPreferencesHasSentWarningEmail = true, + UserPermissionsKnowledgeUser = true ); User runningUser = [ SELECT diff --git a/src/minlopro/main/applications/MinloproConsole.app-meta.xml b/src/minlopro/main/applications/MinloproConsole.app-meta.xml index 53dd4046..8afa0ff2 100644 --- a/src/minlopro/main/applications/MinloproConsole.app-meta.xml +++ b/src/minlopro/main/applications/MinloproConsole.app-meta.xml @@ -73,6 +73,7 @@ GoogleMapsApiPlayground Car__c standard-report + Knowledge__kav Lightning MinloproConsole_UtilityBar @@ -83,6 +84,9 @@ GoogleMapsApiPlayground + + Knowledge__kav + LogsMonitor diff --git a/src/minlopro/main/permissionsetgroups/Minlopro_PSG_Admin.permissionsetgroup-meta.xml b/src/minlopro/main/permissionsetgroups/Minlopro_PSG_Admin.permissionsetgroup-meta.xml index 464deb23..6cb6da5a 100644 --- a/src/minlopro/main/permissionsetgroups/Minlopro_PSG_Admin.permissionsetgroup-meta.xml +++ b/src/minlopro/main/permissionsetgroups/Minlopro_PSG_Admin.permissionsetgroup-meta.xml @@ -4,6 +4,7 @@ false Minlopro_Admin + Minlopro_KnowledgeAdmin SH2__Storage_Helper dlrs__LookupRollupSummariesFull dlrs__LookupRollupSummariesReadOnly diff --git a/src/minlopro/main/permissionsetgroups/Minlopro_PSG_InternalUser.permissionsetgroup-meta.xml b/src/minlopro/main/permissionsetgroups/Minlopro_PSG_InternalUser.permissionsetgroup-meta.xml index 276c2142..86711ee2 100644 --- a/src/minlopro/main/permissionsetgroups/Minlopro_PSG_InternalUser.permissionsetgroup-meta.xml +++ b/src/minlopro/main/permissionsetgroups/Minlopro_PSG_InternalUser.permissionsetgroup-meta.xml @@ -16,6 +16,7 @@ Minlopro_ForceComSite Minlopro_GithubWebhook Minlopro_GoogleMaps + Minlopro_KnowledgeUser Minlopro_LeadsManager Minlopro_Logger Minlopro_SalesforceConnectCustomAdapter diff --git a/src/minlopro/main/permissionsets/Minlopro_KnowledgeAdmin.permissionset-meta.xml b/src/minlopro/main/permissionsets/Minlopro_KnowledgeAdmin.permissionset-meta.xml new file mode 100644 index 00000000..16ee04be --- /dev/null +++ b/src/minlopro/main/permissionsets/Minlopro_KnowledgeAdmin.permissionset-meta.xml @@ -0,0 +1,75 @@ + + + Grants admin access to create, edit, archive, and delete Knowledge articles. + false + + + true + true + true + true + true + Knowledge__kav + true + + + Knowledge__kav + Visible + + + standard-Knowledge + Visible + + + true + AllowUniversalSearch + + + true + AllowViewKnowledge + + + true + ArchiveArticles + + + true + EditKnowledge + + + true + EditTranslation + + + true + ManageKnowledge + + + true + ManageKnowledgeImportExport + + + true + PublishArticles + + + true + PublishTranslation + + + true + ShareInternalArticles + + + true + SubmitForTranslation + + + true + ViewArchivedArticles + + + true + ViewDraftArticles + + diff --git a/src/minlopro/main/permissionsets/Minlopro_KnowledgeUser.permissionset-meta.xml b/src/minlopro/main/permissionsets/Minlopro_KnowledgeUser.permissionset-meta.xml new file mode 100644 index 00000000..1ac9f0e4 --- /dev/null +++ b/src/minlopro/main/permissionsets/Minlopro_KnowledgeUser.permissionset-meta.xml @@ -0,0 +1,26 @@ + + + false + + + false + false + false + true + false + Knowledge__kav + true + + + Knowledge__kav + Visible + + + standard-Knowledge + Visible + + + true + AllowViewKnowledge + + diff --git a/src/minlopro/main/settings/Knowledge.settings-meta.xml b/src/minlopro/main/settings/Knowledge.settings-meta.xml index 814e92d2..dfa6bb15 100644 --- a/src/minlopro/main/settings/Knowledge.settings-meta.xml +++ b/src/minlopro/main/settings/Knowledge.settings-meta.xml @@ -1,4 +1,52 @@ + + false + + + + DigEx + + false + true + true + false + + en_US + false + true + true + false true + false + false + true + false + true + true + false + true + false + false + false + false + + + + Subject + + + false + + + Subject + + + + + Subject + + + + true