-
Hi everybody Since yesterday evening (UTC+2) I get an error when tryning to login : Error: unauthorized_client: 700016 - [2024-09-10 07:08:56Z]: AADSTS700016: Application with identifier 'xxxxxx' was not found in the directory 'xxxx'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID: xxxx Correlation ID: xxxxTimestamp: 2024-09-10 07:08:56Z - Correlation ID: xxxx - Trace ID: xxxx Was working perfectly since monthes before. Any hint would be greatly appreciated ! Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Hi @apc005 which version of CLI are you using? Because of some breaking changes regarding the PnP app registration, we had to release |
Beta Was this translation helpful? Give feedback.
-
Hey @apc005, just a heads up, yesterday, the PnP Management Shell app registration was updated. Could it be that you're using this registration? You can check out more details about the changes here: https://pnp.github.io/blog/post/changes-pnp-management-shell-registration/. To work around these changes, the team has developed an alternative experience. The best approach is to create a new app registration with only the permission scopes your script needs. If you prefer a similar setup to the old registration, you can still create that too. You can use the |
Beta Was this translation helpful? Give feedback.
-
yes. Since yesterday the PnP Management Shell was removed from all tenants. This was the default app that was used by CLI for M365 to perform login. You may read more about this announcement and reasoning behind it in this release blog post It was a very short notice also for us. It is still possible to use CLI but now you need to define the your own app registration and when performing Also one week ago we release a new major release v9 https://pnp.github.io/blog/cli-for-microsoft-365/cli-for-microsoft-365-v9-0 |
Beta Was this translation helpful? Give feedback.
yes. Since yesterday the PnP Management Shell was removed from all tenants. This was the default app that was used by CLI for M365 to perform login. You may read more about this announcement and reasoning behind it in this release blog post
https://pnp.github.io/blog/post/changes-pnp-management-shell-registration/
It was a very short notice also for us. It is still possible to use CLI but now you need to define the your own app registration and when performing
login
you need to pass theappId
andtenant
options either when running the command or as configs or as env variables. So it is still possible to use any CLI versionm365 login --appId 31359c7f-bd7e-475c-86db-fdb8c937548c --tenant 3…