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.

Required Parameters

-ForeignCompanyObjectId

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

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

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