How to set up permissions to allow app to sync with Azure AD

Karl Parker 16 Reputation points
2023-03-08T11:50:13.6533333+00:00

We are running an Enterprise App, Bob Provisioning, that syncs with our Azure AD, but the sync is failing for a few users. It seems to be all of the users that have the Billing Administrator role assigned. I have raised a ticket with the Software company that provide the app, and they said the following.

I can see in the sync report that the error you're getting is: "Make sure that all the required permissions are granted to the AzureAD account associated with this integration."
 **
This means that you need to check in Azure whether these employees are admins in Azure.
If they are, you will need to add an additional permission to the Bob Enterprise app in Azure called "Directory.AccessAsUser.All" as per Azure docs.**
 **
If they are Admins and these permissions were granted, and you still get the same errors, we would recommend escalating the matter to the Microsoft team as they will be able to advise on what additional permissions/steps should be performed on the Azure side.**

I have added the Directory. AccessAsUser.All permission, as suggested, but still getting the same problem when trying to Sync.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} vote

2 answers

Sort by: Most helpful
  1. Da Waving Kodiak 0 Reputation points
    2023-08-28T15:31:46.1366667+00:00

    Did anyone find any solution to this? I have the exact same issue with HiBob - Azure AD provisioning, with the exception that a few users don't have any roles assigned and still fail.

    For us this appeared late spring, before that all users with a admin role could be synced without problems. Also, assigning the app excessive API permissions does not help for me either.

    What seem to work is this:

    1. Removed admin role (billing admin) from one user
    2. Manual sync in Bob (successful)
    3. Added billing admin role back to the user
    4. Sync continues to work

    But this workaround is not applicable to the users without roles that fail to sync. No idea if this continues to work either.

    Any advise is highly appreciated.

    0 comments No comments

  2. Da Waving Kodiak 0 Reputation points
    2023-08-28T17:10:39.87+00:00

    After a s**t load of troubleshooting I managed to solve this!

    Test this first

    Azure AD - Application Registrations - HiBob app - API Permissions. Add:

    • Directory.Read.All
    • Directory.ReadWrite.All
    • User.EnableDisableAccount.All
    • User.ManageIdentities.All
    • User.Read.All
    • User.ReadWrite.All

    If you still cannot sync all users, continue with this:

    Azure AD - Roles and administrators - add your application to the following roles:

    • User Administrator role
    • Global Administrator role

    Some fields are classed as sensitive and might need extensive permissions.

    https://learn.microsoft.com/en-gb/graph/api/resources/users?view=graph-rest-1.0#sensitive-actions-for-users

    0 comments No comments

Your answer

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