-
Notifications
You must be signed in to change notification settings - Fork 0
Add PpacSecurityRoleMember
Enables assignment of a user to a security role in the Power Platform environment.
Add-PpacSecurityRoleMember [-EnvironmentId] <String> [-User] <String> [-Role] <String[]>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
This cmdlet assigns a user to one or more security roles in the specified Power Platform environment.
Add-PpacSecurityRoleMember -EnvironmentId "env-123" -User "alice" -Role "System Customizer"
This will assign the user "alice" to the "System Customizer" security role in the environment with the id "env-123".
Add-PpacSecurityRoleMember -EnvironmentId "env-123" -User "alice@contoso.com" -Role "System Customizer", "Environment Maker"
This will assign the user "alice@contoso.com" to the "System Customizer" and "Environment Maker" security roles in the environment with the id "env-123".
The id of the environment that you want to work against.
Can be either the environment name, the environment GUID (PPAC) or the LCS environment ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe user that you want to assign to the security role.
Can be either the User Principal Name (UPN) or the UserId of the user in the Power Platform environment.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe security role that you want to assign to the user.
Can be either the role name or the role ID.
Type: String[]
Parameter Sets: (All)
Aliases: RoleName
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)