New-RollenRechtenGroup
SYNOPSIS
Create new AD group for Rollen & Rechten
SYNTAX
New-RollenRechtenGroup [-ClientName] <String> [[-Environment] <String[]>] [[-DefaultRoles] <String[]>]
[[-CustomRoles] <String[]>] [-AuthMethod] <String> [<CommonParameters>]
DESCRIPTION
This script creates new Active Directory groups for the application Rollen & Rechten
EXAMPLES
EXAMPLE 1
# Create new groups for the application test, only in pr with AAD auth for the roles Beheerder/Gebruiker
PS C:\> New-RollenRechtenGroup -ClientName 'test' -DefaultRoles Beheerder, Gebruiker -AuthMethod AAD
EXAMPLE 2
# Create new groups for the application test, in pr/qa/dv with RH-SSO auth for the roles Beheerder/Gebruiker/TestRole
PS C:\> New-RollenRechtenGroup -ClientName 'test' -Environment pr, qa, dv -DefaultRoles Beheerder, Gebruiker -CustomRoles 'TestRole' -AuthMethod RH-SSO
EXAMPLE 3
# Create a new group for the application test, only in dv/qa/st with MSAD auth for the role Beheerder
PS C:\> New-RollenRechtenGroup -ClientName 'test' -Environment dv, qa, st -DefaultRoles Beheerder -AuthMethod MSAD
PARAMETERS
-ClientName
The name of the application/service for which we need to create new management groups.
Type: String
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Environment
The environment(s) for which we need to create new management groups. Choose from the provided list.
Type: String[]
Parameter Sets: (All)
Aliases: Env
Required: False
Position: 2
Default value: Pr
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-DefaultRoles
The default role(s) for which we need to create new management groups. Choose from the provided list.
Type: String[]
Parameter Sets: (All)
Aliases: DR
Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-CustomRoles
Non-standard role(s) for which we need to create new management groups.
Type: String[]
Parameter Sets: (All)
Aliases: CR
Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-AuthMethod
Which auth method that needs to be used with these groups. Choose from the provided list.
Type: String
Parameter Sets: (All)
Aliases: Auth
Required: True
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.