Forum Discussion
"User not in directory" error, for a valid user when accessing SharePoint site
Possibly something went wrong during the synchronisation ?
Does this happen to any other SharePoint sites?
Delete the User profile from SharePoint Online Admin center in classic mode
User Profiles > Manage User Profiles
Delete the user profile if it is there
More info: https://docs.microsoft.com/en-us/sharepoint/manage-user-profiles
It may also be a mismatch PUID which can be resolved here
https://docs.microsoft.com/en-us/sharepoint/remove-users
Also double check for broken inheritance on the site, such as the page or site page library, this may cause an issue as well.
kevisee ok thanks for the reply. this error will happen on all the SharePoint sites for the user. now if i delete the user profile -as you mentioned-, then will I have to wait for the next sync job to run, for the user profile to become available again?
Finally there is not any broken inheritance, and even if the user does not have intermission on a site/list/item, the user will get an error about permission, but will not get an error "User not in directory"..