-
Notifications
You must be signed in to change notification settings - Fork 0
Add PpacTeamOnSecurityGroup
Enables assignment of a Microsoft Entra ID security group as a team in the Power Platform environment.
Add-PpacTeamOnSecurityGroup [-EnvironmentId] <String> [-Name] <String> [-SecurityGroup] <String>
[[-MembershipType] <String>] [-Role] <String> [[-TeamAdmin] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
This cmdlet assigns a Microsoft Entra ID security group as a team in the specified Power Platform environment and assigns a security role to the team.
Add-PpacTeamOnSecurityGroup -EnvironmentId "env-123" -Name "Contoso Sales Team" -SecurityGroup "Contoso Sales Security Group" -MembershipType "Members and Guests" -Role "System Customizer"
This will add the Microsoft Entra ID security group "Contoso Sales Security Group" as a team in the Power Platform environment with the id "env-123". The team will be named "Contoso Sales Team" and have the membership type "Members and Guests". The "System Customizer" security role will be assigned to the team. The administrator of the team will be the user running the cmdlet.
Add-PpacTeamOnSecurityGroup -EnvironmentId "env-123" -Name "Contoso Sales Team" -SecurityGroup "Contoso Sales Security Group" -MembershipType "Members and Guests" -Role "System Customizer" -TeamAdmin "admin@contoso.com"
This will add the Microsoft Entra ID security group "Contoso Sales Security Group" as a team in the Power Platform environment with the id "env-123". The team will be named "Contoso Sales Team" and have the membership type "Members and Guests". The "System Customizer" security role will be assigned to the team. The administrator of the team will be "admin@contoso.com".
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 name of the team to create in the Power Platform environment.
Type: String
Parameter Sets: (All)
Aliases: Team
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe Microsoft Entra ID security group that you want to assign as a team in the Power Platform environment.
Can be either the name or the id (objectId) of the Microsoft Entra ID security group.
Type: String
Parameter Sets: (All)
Aliases: EntraGroup
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe membership type of the team.
Can be either "Members and Guests", "Members", "Guests", or "Owners".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Members
Accept pipeline input: False
Accept wildcard characters: FalseThe security role that you want to assign to the team.
Can be either the role name or the role ID.
Type: String
Parameter Sets: (All)
Aliases: RoleName
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe User Principal Name (UPN) of the admin user in the Power Platform environment.
This user needs to have sufficient permissions to create teams and assign security roles in the Power Platform environment.
If not provided, the cmdlet will use the account used to authenticate to Azure.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
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)