Attempted to perform an unauthorized operation in OneDrive web app

Anonymous
2023-08-23T19:15:55+00:00

I have a user who has "Full Control" of a shared OneDrive and is able to access it through the OneDrive Application and SharePoint, but not through the web app. He is immediately met with the error "Attempted to perform an unauthorized operation" when he opens the web app. We have run through basic troubleshooting like clearing cache and using different browsers, but he is unable to use the OneDrive web app at all. This does not seem to have anything to do with his access to the shared drive since he can access everything just fine elsewhere. Would there be any reason why he is only getting this error with the OneDrive web app?

Microsoft 365 and Office | OneDrive | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-08-26T07:26:40+00:00

    Dear Karlie McCue

    Good day! Thank you for reply

    After user gets permission first time from the site, user information will be cached on the site. Even you remove the permission, the cached info will not be deleted. So next time when you assign permission to this user, instead of re-getting user info from Azure AD(SharePoint user profile is synced from AAD), people picker will automatically assign permission to this cached one.

    The method we suggested you is to remove user cached info on the site. So when you assign permission again, it will get updated user profile from AAD. As per your description, the error message is "unauthorized", but permission is already given, so we guess if possible it is the cached user info problem and provided this suggestion.

    However, if this could not resolve the problem, could you please provide any screenshot of the error? (Please hide your personal info from it). And also please provide the URL in error page, so we can have better insight of this issue.

    Your understanding and patience will be highly appreciated.

    If there is any misunderstanding, please feel free to correct me.

    Have a nice day!

    Best regards,

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-08-24T16:57:17+00:00

    Hi Sophia,

    Thank you so much for your reply! I am curious, I have tried removing and re-adding the user from the site through the Microsoft O365 admin center, it the error message was still flagged. Would your method be more effective?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-08-24T04:42:57+00:00

    Dear Karlie McCue

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    1, Could you please share any screenshots in the error page as well as the error URL?

    2, You may first clear the user info from the shared OneDrive by modifying site URL to add “/_layouts/15/people.aspx?membershipGroupId=0” at end.

    For example, the shared OneDrive URL is https://contoso-my.sharepoint.com/personal/username\_com, the modified URL should be https://contoso-my.sharepoint.com/personal/username\_com\_layouts/15/groupmembership=0.

    Troubleshoot user profile removal issues in SharePoint - SharePoint in Microsoft 365 | Microsoft Learn

    In this page, find the user who has problem, click actions, remove user from the site.

    3, Then please go to shared OneDrive, click settings icon, OneDrive settings, more OneDrive settings, site collection admin, add user here as site admin and check if issue can be resolved.

    Your understanding and patience will be highly appreciated.

    If there is any misunderstanding, please feel free to correct me.

    Have a nice day!

    Best regards,

    Was this answer helpful?

    0 comments No comments