-
-
Notifications
You must be signed in to change notification settings - Fork 13
Add PpacApplicationUser
Add application user to Power Platform environment.
Add-PpacApplicationUser [-EnvironmentId] <String> [-ServicePrincipal] <String> [-Role] <String>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Enables the user to add an application user to the environment and assign a security role to it.
Add-PpacApplicationUser -EnvironmentId "env-123" -ServicePrincipal "00000000-0000-0000-0000-000000000000" -Role "System Administrator"
This will add an application user to the Power Platform environment. It will use the Service Principal with the ServicePrincipal "00000000-0000-0000-0000-000000000000" from Azure AD / Entra ID It will then assign the "System Administrator" security role to it in the Power Platform environment.
Add-PpacApplicationUser -EnvironmentId "env-123" -ServicePrincipal "My Service Principal" -Role "System Administrator"
This will add an application user to the Power Platform environment. It will use the Service Principal with the display name "My Service Principal" from Azure AD / Entra ID It will then assign the "System Administrator" security role to it in the Power Platform environment.
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 Service Principal in Azure AD / Entra ID that you want to add as an application user to the Power Platform environment.
You can provide either the id (objectId) or display name of the Service Principal.
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 application user.
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)