msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Microsoft Graph PowerShell cannot invite guest users in Azure China and is prompted with insufficient permissions.
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.
Permission reference document: https://learn.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http#permissions
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.
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.