Remove-MsolForeignGroupFromRole

Removes a security group from a partner tenant.

Syntax

Remove-MsolForeignGroupFromRole
      -ForeignGroupObjectId <Guid>
      -ForeignCompanyObjectId <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.

Parameters

-ForeignCompanyObjectId

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

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:True
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
Required:True
Accept pipeline input:True
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
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-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
Required:False
Accept pipeline input:True
Accept wildcard characters:False