2016-09-20 85 views
0

我使用這個樣本https://github.com/Azure-Samples/active-directory-dotnet-native-headlessAzure中的Active Directory登錄微軟賬戶

許多樣品,這一個包容性的,說:

此示例將無法與Microsoft帳戶工作,所以如果您使用Microsoft帳戶登錄Azure門戶並且以前從未在您的目錄中創建過用戶帳戶,則需要現在執行此操作。

當我與我的Microsoft帳戶登錄,我得到的例外是:

AADSTS50020: User account '{mymicrosoftaccount}@{domain.com}' 
from identity provider 'https://sts.windows.net/00000000-0000-0000-0000-000000000000/' 
does not exist in tenant '{my-tenant}' and cannot access the application 
'00000000-0000-0000-0000-000000000000' in that tenant. 
The account needs to be added as an external user in the tenant first. 
Sign out and sign in again with a different Azure Active Directory user account. 

什麼會我需要怎樣做才能讓我的Microsoft帳戶登錄?目前,我的權限是https://login.microsoftonline.com/{mytenant}我是否必須爲用戶提供一個選項,以使用Microsoft帳戶或Active Directory帳戶登錄。如果是這樣,我使用哪個權限來允許登錄Microsoft帳戶?

回答

-1

權限沒有問題。爲了讓用戶使用Microsoft帳戶登錄,您需要在https://manage.windowsazure.com的租戶的添加用戶窗口中選擇「另一個Microsoft Azure AD目錄中的用戶」。

+0

爲什麼會降低投票率? – abhishek58g

+0

沒有線索。藉助經典的Azure門戶,您確實可以添加一個Microsoft帳戶。我不知道如何用新的門戶來做到這一點。謝謝 –