The user with object id xxxxxxxxxxxxxxxx does not have permission to access this. #4296
Unanswered
renato87milagres
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need help running the command.
Export-PnPPowerApp -Environment Default-xxxxxxx -Identityxxxx -OutPath "C:/scripts/cert/xxxx.zip"
Im trying to use the principal service to run it. However, I am getting this error :
Export-PnPPowerApp -Environment xxxxx -Identity xxxx -OutPath "C:/scripts/cert/xxxxx.zip" -Verbose
VERBOSE: Acquiring oAuth token for permission scope https://management.azure.com/.default
VERBOSE: No scopes could be determined from the access token
VERBOSE: Current access might not have the required permissions to execute this cmdlet. Required permission: https://management.azure.com/.default. Missing permission: https://management.azure.com/.default.
VERBOSE: Export failed for xxxxx with error Forbidden: The user with object id xxxxx does not have permission to access this.
My principal service does have those permissions.
Im running it using PowerShell 7.4.5, and I have those PNP versions installed

Also, when I tried to authenticate using my credentials and run the same command, I got a different error :
Export-PnPPowerApp -Environment Default-xxxxx -Identity xxxxxx -OutPath "C:/scripts/cert/xxxxx.zip" -Verbose
VERBOSE: Acquiring oAuth token for permission scope https://management.azure.com/.default
VERBOSE: Access token acquired containing the following delegate scope: user_impersonation
VERBOSE: Current access might not have the required permissions to execute this cmdlet. Required permission: https://management.azure.com/.default. Missing permission: https://management.azure.com/.default.
VERBOSE: Acquiring oAuth token for permission scope https://management.azure.com/.default
VERBOSE: Access token acquired containing the following delegate scope: user_impersonation
VERBOSE: Current access might not have the required permissions to execute this cmdlet. Required permission: https://management.azure.com/.default. Missing permission: https://management.azure.com/.default.
Export-PnPPowerApp: The synchronous method is not supported by 'System.Net.Http.SocketsHttpHandler' for HTTP/2 or higher. Either use an asynchronous method or downgrade the request version to HTTP/1.1 or lower.
Beta Was this translation helpful? Give feedback.
All reactions