msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Microsoft Graph PowerShell cannot invite guest users in Azure China and is prompted with insufficient permissions.

Open 741300182 opened this issue 1 year ago • 0 comments

Microsoft Graph PowerShell cannot invite guest users in Azure China and is prompted with insufficient permissions. Because Microsoft Graph PowerShell cannot log in as a user in Azure China, you can only log in as an application. However, when you log in and use New-MgInvitation to join the account, the permission is insufficient. image

Permission reference document: https://learn.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http#permissions image

To verify permissions I used the AzureAD V2.0 module, also logging in using this application. Once logged in, I can normally invite guest users using the AzureAD module. image

This test shows that my application permissions are fine, except that I can't invite users when using Microsoft Graph PowerShell.

Since the AzureAD module is about to be deprecated, I would like to know whether it will also be deprecated in China, or whether there are other solutions to support the use of Microsoft Graph PowerShell in China after it is enabled.

741300182 avatar Mar 05 '24 05:03 741300182