Logging into Microsoft 365 tenant as an external user #1805
Unanswered
garrytrinder
asked this question in
General
Replies: 1 comment 2 replies
-
@garrytrinder I believe that this is a very valid scenario, indeed. I am actually trying to do that for testing a migration tool that does tenant 2 tenant. I want to use my corporate identity to create an external guest account in source/target AzureAd directories and assign roles then use the cli for management purposes. It would be great to avoid using extra admin accounts. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A question was raised on Twitter by @alexandair asking whether it would be possible to log into a Microsoft 365 tenant using an external user account.
After some investigation, we have discovered that it is possible to do this.
To configure the CLI for this scenario, you are required to update the
CLIMICROSOFT365_TENANTID
environment variable to the tenant id of the target tenant before executing them365 login
command.This does also require that the target tenant has consented to the use of the
PnP Management Shell
Azure AD application.Is this scenario useful to you? We would love to hear your feedback.
Beta Was this translation helpful? Give feedback.
All reactions