-
Notifications
You must be signed in to change notification settings - Fork 0
Add FscmSecurityRoleMember
Enables assignment of a user to a security role in the Dynamics 365 ERP environment.
Add-FscmSecurityRoleMember [-EnvironmentId] <String> [-User] <String> [-Role] <String[]>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
This cmdlet assigns a user to one or more security roles in the specified Dynamics 365 ERP environment.
Add-FscmSecurityRoleMember -EnvironmentId "env-123" -User "alice" -Role "Sales Clerk"
This will assign the user "alice" to the "Sales Clerk" security role in the environment with the id "env-123".
Add-FscmSecurityRoleMember -EnvironmentId "env-123" -User "alice@contoso.com" -Role "Sales Clerk", "Sales Manager"
This will assign the user "alice@contoso.com" to the "Sales Clerk" and "Sales Manager" 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 Dynamics 365 ERP 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)