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

Sergio Londono 886 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 Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    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.


2 additional answers

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

  2. Alex Tripp 0 Reputation points
    2024-11-01T06:14:09.4366667+00:00

    Any idea why this "Microsoft Graph Command Line Tools" is not showing up in my tenants enterprise app? I read a support post saying it was now called "Microsoft Graph PowerShell" which is in our tenant.

    I've noticed that this is Apr 2024 which is recent enough. Has something changed in the last 7 months?

    We are having sign-in events blocked by conditional access for "Microsoft Graph Command Line Tools" when admins are using graph powershell modules.

    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.