How to create a service account in Azure Active Directory, grant it read only permissions to graph api in azure?

jasonsmith 20 Reputation points
2023-05-17T09:20:19.8333333+00:00

How to create a service account in Azure Active Directory, grant it read only permissions to graph api in azure?

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-05-17T09:27:47.4366667+00:00

    Hi @jasonsmith ,

    Thanks for reaching out.

    There are three types of service accounts in Azure Active Directory.

    a. Managed Identities
    b. Service Principals
    c. and User Based Service accounts.

    These are those accounts that represent application, API or other service.

    To create a service account in Azure Active Directory, you can follow these steps:

    1. Sign in to the Azure portal using your Azure account.
    2. In the left-hand menu, click on "Azure Active Directory".
    3. In the Azure Active Directory page, click on "App registrations" in the menu on the left.
    4. Click on the "New registration" button.
    5. Enter a name for the service account in the "Name" field.
    6. In the "Supported account types" section, select "Accounts in this organizational directory only" or select the appropriate options for your service account.
    7. Click on the "Register" button.

    277373-image.png

    You can then use this service account or service principal to authenticate to Azure resources and perform operations on behalf of your organization. As you create these service accounts for automated use, they're granted permissions to access resources in Azure and Azure AD.

    Grant the service account only the permissions necessary to perform its tasks i.e User.Read by selecting app permissions in your registered application.

    277374-image.png

    User.Read is by default added permission to your registered application.

    Hope this will help.

    Thanks,
    Shweta


    Please remember to "Accept Answer" if answer helped you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.