question

ZhangLongLi-5265 avatar image
0 Votes"
ZhangLongLi-5265 asked MarileeTurscak-MSFT commented

Azure Active Directory incorrect claims conditions

83101-microsoftteams-image.png


User[lizhanglong@live.com] is a guest user, but my application get his user type is member?

82999-20210331112906.png


azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered MarileeTurscak-MSFT commented

You can change the UserType from a Member to a Guest (and vice versa) visually through the MSOnline Powershell module.

Install-Module MSOnline -Force
Connect-MsolService
Get-MsolUser
Set-MsolUser -UserPrincipleName <UserPrincipleName here> -UserType Guest


However, the UserType property represents the user's relationship to the organization. Therefore, you should change this property only if the relationship of the user to the organization changes. Otherwise it's recommended to delete and recreate the user.

https://docs.microsoft.com/en-us/azure/active-directory/external-identities/user-properties


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How was the user initially added?

0 Votes 0 ·