Enterprise applications: Microsoft Graph Command Line tools, How to restrict connection to Microsoft Graph and grant access to specific users

Sergio Londono 321 Reputation points
2024-04-24T23:59:06.3866667+00:00

Hello team,

I am trying to grant access to specific users to Microsoft Graph.

the objective is to block public access in our tenant to Microsoft Graph.

I tried using conditional access, however, in the apps to select, it doesn't show Microsoft graphs.
User's image

then, I found the option to block users' sign-in in enterprise application/Microsoft Graph Command Line tools. However, I believe this will block all the Microsoft Graph.

User's image

do you know how I can allow access to Microsoft Graph to specific users?

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,562 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 27,711 Reputation points Microsoft Employee
    2024-04-25T08:09:58.2233333+00:00

    Hi @Sergio Londono ,

    Thanks for reaching out.

    In the Enterprise application, "Enabled for users to sign in?" property to No will not allow any users to sign into your application, even if they're assigned to it. Tokens aren't issued for the application in this scenario.

    If you want to restrict users/groups to access your application, then you can use "Assignment required" setting which allow you to further lock down access to the application and let only specified users and applications obtain access tokens.

    User's image

    If this option is set to Yes, then users and other applications or services must first be assigned this application before being able to access it.

    User's image

    Any un-assigned users try to access the application will get below error:

    User's image

    Hope this will help.

    Thanks,

    Shweta

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


1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 142.2K Reputation points MVP
    2024-04-25T00:10:27.85+00:00
    0 comments No comments