I need to create an application with the Office 365 API and try some examples given here: https://msdn.microsoft.com/en-us/office/office365/howto/starter-projects-and-code-samples .
I manage to log into the application with a user from my own Azure Active Directory, for example. user.name@tenant.onmicrosoft.com.
But, when I use another Office 365 account from another domain, for example. user@pivabo.be I get this error:
AADSTS50020: user account ' user@pivabo.be ' from an external identity provider ' https://sts.windows.net/908b6c6d-f582-461d-9e73-88a4e48f5d88/ ' is not supported for the application 'df1a02fd- f096-46df-9b5a -5cf1b0f9ef6d. The account must be added as an external user to the tenant. Log in and log in with your Azure Active Directory user account.
A specific application in Azure is installed in Multi-tenant !!
I also tried adding foreign users to my AAD, but every time I get the message "This Microsoft account does not exist"
EXCEPT: I also made a hotmail account that I was able to add to my AAD, and with this account included in the application was successful. But, without adding it to my AAD, I get the above error message.
Any help would be appreciated.
source
share