Remove-​Msol​Foreign​Group​From​Role

Removes a security group from a partner tenant.

Syntax

Remove-MsolForeignGroupFromRole
      -ForeignCompanyObjectId <Guid>
      -ForeignGroupObjectId <Guid>
      -RoleObjectId <Guid>
      [-TenantId <Guid>]
      [<CommonParameters>]

Description

The Remove-MsolForeignGroupFromRole cmdlet removes a security group from a partner tenant for a specified role in this tenant.

Required Parameters

-ForeignCompanyObjectId

Specifies the object ID of the partner tenant that contains the group to remove.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ForeignGroupObjectId

Specifies the unique object ID of the group in the partner tenant to remove.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RoleObjectId

Specifies the unique object ID of the role from which to remove the group.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False