In general, but in particular for PS, test users are required on all Test and Live installations/orgs. To make sure the user name and other settings are the same across the LMS installations please use the below command set to create test users.
Test users should be added to LastPass. PS has a shard folder in LastPass called Shared-PS-QA to store all PS related test user logins.
PS Test Student
Code Block |
---|
AddUser [orgPath] "MarineLMS PS" "[OrgShortName]-TestStudent" [password] false "[OrgShortName][Live|Test]-psteststudent@marinels.com" [OrgShortName][Live|Test]-MarineLMSPSTestStudent EditUserProperty [OrgShortName][Live|Test]-MarineLMSPSTestStudent ContactEmail ps@marinels.com |
NoteNotes: replace
Replace
[orgPath]
,[OrgShortName]
and[password
] accordinglyChoose one of the options
[Live|Test]
depending whether this is a live or test system to differentiate between the users
Example for CMG
Code Block |
---|
AddUser /Root/Carnival/CMG "MarineLMS PS" "CMG-TestStudent" 3Xg&Ok3ZCrOFzlnRwZ5CHex8VHf50kPW5@kSVOH%CxLV&K$kpQvq#U false "cmgcmglive-psteststudent@marinels.com" CMGMarineLMSPSTestStudentCMGLive-MarineLMSPSTestStudent EditUserProperty CMGMarineLMSPSTestStudentCMGLive-MarineLMSPSTestStudent ContactEmail ps@marinels.com |
...
Code Block |
---|
AddUser [orgPath] "MarineLMS PS" "[OrgShortName]-TestAdmin" [password] false "[OrgShortName][Live|Test]-pstestadmin@marinels.com" [OrgShortName][Live|Test]-MarineLMSPSTestAdmin EditUserProperty [OrgShortName][Live|Test]-MarineLMSPSTestAdmin ContactEmail ps@marinels.com |
NoteNotes: replace
Replace
[orgPath]
,[OrgShortName]
and[password
] accordinglyChoose one of the options
[Live|Test]
depending whether this is a live or test system to differentiate between the users
After creating the admin user, go to Manage > Users
and enable 'Course Management Rights' and check 'Manage users in the organization' in tab 'Global Management Rights'.
Permissions for PS Test Admin
Allow the test admin to download offering rule matrices
Code Block |
---|
AddUserToGroup /Root/Carnival/CCL MarineMLS-PS-TestUser-Administrators [OrgShortName][Live|Test]-MarineLMSPSTestAdmin
AddLinkAttribute /Root/Carnival/CCL System.Capability.CanViewOfferingRuleMatrix "OrgAdmin : ALLOW : IsInGroup(MarineMLS-PS-TestUser-Administrators)" |
Note: the permissions attribute may already exist.
Example for CMG
Create user:
Code Block |
---|
AddUser /Root/Carnival/CMG "MarineLMS PS" "CMG-TestAdmin" mB80u9%WgrPQFZuAyetVmGlc@Pztm2Pq9u#86Kr2GMh7u77#8pw6TJ false "cmgcmglive-pstestadmin@marinels.com" CMGMarineLMSPSTestAdminCMGLive-MarineLMSPSTestAdmin EditUserProperty CMGMarineLMSPSTestAdminCMGLive-MarineLMSPSTestAdmin ContactEmail ps@marinels.com |
Add admin permission:
Code Block |
---|
AddUserToGroup /Root/Carnival/CCL MarineMLS-PS-TestUser-Administrators CMGLive-MarineLMSPSTestAdmin
AddLinkAttribute /Root/Carnival/CCL System.Capability.CanViewOfferingRuleMatrix "OrgAdmin : ALLOW : IsInGroup(MarineMLS-PS-TestUser-Administrators)" |