We are using Sitecore 10.1.3 PRE. The Azure AD login is setup only for the PRD environment.
A particular user is unable to login with AD.
On login, the error says
You do not have access to the system. If you think this is wrong, please contact the system administrator.
But on the top right of the CMS login page, the user's email is visible. The user is able to use Azure AD login successfully with other portals.
In CMS, a user is being created when logging in, but there are no roles. When I try to add roles. The next time that user logs in, all the roles are removed.
But, for some other users in User Management, who are also using AD to login, we can see the roles.
What could be the issue here.
Will changing the value to false help? Wanted to check first before making changes in PRD and lso not to impact existing users.
<externalUserBuilder type="Sitecore.Owin.Authentication.Services.DefaultExternalUserBuilder, Sitecore.Owin.Authentication" resolve="true"> <IsPersistentUser>true</IsPersistentUser> </externalUserBuilder>