Muokkaa

Jaa


Add-MsolForeignGroupToRole

Adds a security group from a partner tenant to a Role in this tenant.

Syntax

Add-MsolForeignGroupToRole
   -ForeignGroupObjectId <Guid>
   -ForeignCompanyObjectId <Guid>
   -RoleObjectId <Guid>
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Add-MsolForeignGroupToRole cmdlet adds a security group from a partner tenant to the specified role in this tenant.

Parameters

-ForeignCompanyObjectId

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

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 add.

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 to which to add 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