Add-AcctAzureADSecurityGroupMember
Adds an Azure AD security group to an assigned security group.
Syntax
Add-AcctAzureADSecurityGroupMember
[-AccessToken] <String>
[-GroupId] <String>
[-RefGroupId] <String>
[<CitrixCommonParameters>]
[<CommonParameters>]
Description
Provides the ability to add a Citrix-created device security group as a member to an assigned security group.
Examples
EXAMPLE 1
Adds the security group of a device as a direct member to an assigned security group.
Add-AcctAzureADSecurityGroupMember -AccessToken $accessToken -GroupId $groupId -RefGroupId $refGroupId"
True
Parameters
-AccessToken
Access token of Microsoft Graph API. Make sure grant consent to following permissions:
-
Group.ReadWrite.All
-
GroupMember.ReadWrite.All
| Type: | String |
| Position: | 2 |
| Default value: | None |
| Required: | True |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-GroupId
The assigned security group's ID.
| Type: | String |
| Position: | 3 |
| Default value: | None |
| Required: | True |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-RefGroupId
The device security group's ID.
| Type: | String |
| Position: | 4 |
| Default value: | None |
| Required: | True |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
CitrixCommonParameters
This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
None
By default, this cmdlet returns no output.
Notes
In the case of failure, the following errors can result:
-
PartialDataOnly a subset of the available data was returned.
-
PermissionDeniedThe user does not have administrative rights to perform this operation.
-
ConfigurationLoggingErrorThe operation could not be performed because of a configuration logging error
-
CommunicationErrorAn error occurred while communicating with the service.
-
InvalidFilterA filtering expression was supplied that could not be interpreted for this cmdlet.
-
ExceptionThrownAn unexpected error occurred. To locate more details, see the Windows event logs on the controller being used or examine the XenDesktop logs.
-
AzureADTenantIdMismatchAzureADAccessTokenMismatch between the given AzureADTenantID and TenantID in Azure AD AccessToken.