Error trying to get OneDrive settings when role is Activated using PIM

JunasC 0 Reputation points
2025-11-19T00:53:52.91+00:00

Hi,

Has anyone encountered this issue?

When creating a OneDrive link for a user in the Microsoft 365 Admin Center, we receive the following error:

User's image

The role being used is activated through PIM (User Administrator and SharePoint Administrator). Initially, I thought it might be a permissions issue, so I activated a PIM role with Global Administrator access — but the same error occurred.

However, when using an Active Assignment Global Administrator (not activated via PIM), it works without any issues.

Has anyone experienced this behaviour or knows why PIM-activated roles aren't applying the permissions correctly for OneDrive provisioning?

Thanks in Advance.

Regards.
Jonas

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viego An 5,575 Reputation points Microsoft External Staff Moderator
    2025-11-19T03:10:52.6733333+00:00

    Dear @JunasC, Thank you for reaching out to Microsoft Q&A forum. We are happy to assist.

    When you activate a role through PIM, it’s temporary and can take a few minutes to apply across all Microsoft 365 services. Some services, like OneDrive provisioning in the Admin Center, use cached role information. If that cache hasn’t updated yet, the activated role may not be recognized. A Global Administrator with a permanent assignment works immediately because it’s always active and recognized by all services.

    Here are some workarounds you should try:

    • After activating the role, allow at least 15–30 minutes before attempting OneDrive provisioning tasks.
    • Sign out and sign back in. This ensures your session token is updated with the new role permissions.
    • Use an InPrivate/Incognito window. Cached sessions can block updated permissions, so starting a fresh session helps.
    • If it’s urgent. Use an account with a permanent Global Administrator assignment to complete OneDrive provisioning immediately.

    Visit here for more details:
    Error when accessing SharePoint or OneDrive after role activation in PIM
    What is Microsoft Entra Privileged Identity Management?

    Since I do not have access to your tenant environment, there may be cases where my recommended steps do not fully resolve the issue or other problems appear. If that happens, please update me right away with any new details or results in the Comment. I will do my best to support you and help find a solution as quickly as possible.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.