Setting up account impersonation for a Microsoft Exchange Online data source

  • 26 February 2024
  • 0 replies
  • 33 views

Userlevel 1
Badge

Microsoft Exchange, like other Microsoft services, allows accounts to impersonate other users to collect data. This functionality is often used for service accounts, so that they can work to access data in the background without requiring user input.

This article serves as a guide for setting up the correct permissions for an account to be able to impersonate a set of accounts and access their mailboxes and calendars.

Creating an Impersonation Role Group

  1. To start, navigate to the Microsoft 365 Admin Center as a system administrator. Under "Roles", navigate to "Role assignments".

jzQtYTnVT2mrLKGzBWwbEJCT2_izkXHd7QtqWpbjmLPvlUprTDcpXktuoxvX-8vZq7q8wu9-UhQ7r4yuwVGzP7l5j7SPtO5Oz6Byd6iLTY26K8xC3LVbSG_jiZk87EJnPAyUyOMW2qSjSCcg4g_6M4c

  1. Select the "Exchange" tab. Then, select the "Add role group" button.

    We will be creating a role group for impersonation permissions. Any account that requires these permissions will receive them by being added to this group.
    EGq3MB5Gax9VsxmVdwtpsHuXxEBV4dHwo6JggAC6OtLB3ye6ij6cGeEeEUn2OVolAvTw5m4DX3FtkG6WKo_GANu6YupesYaNephdMYi0WMadE7zeVvf2V0oZrQ1HvSMrJvRx9ZkOcHqVKVrAAqWf7Vg
  2. On the "Basics" step, fill in the Name and Description fields. For "Write scope", you can either select the Default option, or select a custom scope. If the custom scope you wish to use does not yet exist, you can create it using PowerShell by following these instructions. (Note: you can also create the role group in PowerShell by following Step 3 of the instructions and using the flag "-Role ApplicationImpersonation").
  3. Click the "Next" button to move to the "Permission" step.
    Here, find the ApplicationImpersonation permission and select it. Any other permissions you wish to grant this role are optional.
    5IafpgIP2IwJq9KRPi8QRnRxL42MHviMOgNJzWRli1_D_UJr9FSW-3AEQwMijR8tgV2vNcRhP3J99SG87dNMrDOtZ3tbzcMbZouO6PhAU8fUbillWSN-zmzrrABP_TijiWMKRPffFiXoVWlDKj3AL_c
  4. On the "Admins" step, add whichever accounts you wish to be able to impersonate the users in your role group’s write scope.
  5. Complete the "Review and finish" step.

If you ever need to change the scope, permissions, or members ("admins") of the role group, you can do so by going back to the Role assignments page and selecting the new role group you have created.

NwkqM2bjz2Rz6V-qaqe8qGkWKs-Y8NfosWBNGNywpEtuE-4DAR09kfY56o_KzBkRRU8m-l0dMZrro_UbgpHvcVZrYQ_j1C2c_MVC6WKtdm8H8XaJ2gW3IbT4RUMWYGKGgxPJu2H-xAcv8qLU7_fF8VQ

Setting the Impersonation properties in the Driver

In the Driver properties, set the User and Password properties to those of an account that is part of the role group that you just created.

In the ImpersonationType property, select the identifier you want to use to identify the account being impersonated (from "PrincipalName", "SID", "PrimarySmtpAddress", and "SmtpAddress").

In the ImpersonationUser property, identify the user being impersonated (using the type of identifier selected in ImpersonationType).

 


0 replies

Be the first to reply!

Reply