Adds two new functions to the PowerShell module, Get-JCCloudDirectory and Set-JCCloudDirectory
The Get-JCCloudDirectory function will allow admins to query their Cloud Directory instances for their configurations as well as seeing what users or usergroups are associated
The Set-JCCloudDirectory function will allow admins to set the properties for the Cloud Directory instances. In it's current iteration, the Set-JCCloudDirectory function does not allow the association of users or usergroups
Is there anything particularly tricky?
N/A
How should this be tested?
Pester test suites have been written. Manual tests would look like the following:
Get-JCCloudDirectory
Get-JCCloudDirectory -Type <g_suite/office_365> -- Returns all configured directories of specified type
Get-JCCloudDirectory -Name <DirectoryName>-- Returns directory by Name
Get-JCCloudDirectory -ID <DirectoryID>-- Returns directory by ID
Get-JCCloudDirectory -Name <DirectoryName> -Association Users– Returns user associations for the specified directory
Get-JCCloudDirectory -Name <DirectoryName> -Association UserGroups– Returns UserGroup associations for the specified directory
Set-JCCloudDirectory
Set-JCCloudDirectory -Name <DirectoryName> -GroupsEnabled $false– Disables security groups for that directory
Set-JCCloudDirectory -Name <DirectoryName> -UserLockoutAction 'suspend'– Sets the UserLockoutAction for that directory
Set-JCCloudDirectory -Name <DirectoryName> -UserPasswordExpirationAction 'suspend'– Sets the UserPasswordExpirationAction for that directory
Set-JCCloudDirectory -Name <DirectoryName> -NewName ”NewName”– Renames the directory in console
Issues
What does this solve?
Adds two new functions to the PowerShell module,
Get-JCCloudDirectory
andSet-JCCloudDirectory
The
Get-JCCloudDirectory
function will allow admins to query their Cloud Directory instances for their configurations as well as seeing what users or usergroups are associatedThe
Set-JCCloudDirectory
function will allow admins to set the properties for the Cloud Directory instances. In it's current iteration, the Set-JCCloudDirectory function does not allow the association of users or usergroupsIs there anything particularly tricky?
N/A
How should this be tested?
Pester test suites have been written. Manual tests would look like the following:
Get-JCCloudDirectory
Get-JCCloudDirectory -Type <g_suite/office_365>
-- Returns all configured directories of specified typeGet-JCCloudDirectory -Name <DirectoryName>
-- Returns directory by NameGet-JCCloudDirectory -ID <DirectoryID>
-- Returns directory by IDGet-JCCloudDirectory -Name <DirectoryName> -Association Users
– Returns user associations for the specified directoryGet-JCCloudDirectory -Name <DirectoryName> -Association UserGroups
– Returns UserGroup associations for the specified directorySet-JCCloudDirectory
Set-JCCloudDirectory -Name <DirectoryName> -GroupsEnabled $false
– Disables security groups for that directorySet-JCCloudDirectory -Name <DirectoryName> -UserLockoutAction 'suspend'
– Sets the UserLockoutAction for that directorySet-JCCloudDirectory -Name <DirectoryName> -UserPasswordExpirationAction 'suspend'
– Sets the UserPasswordExpirationAction for that directorySet-JCCloudDirectory -Name <DirectoryName> -NewName ”NewName”
– Renames the directory in console