Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Restrict Entra ID App to a Set of Users in an Entra ID Tenant

August 29, 2023
in Blog, Entra ID, Powershell
0
ADVERTISEMENT

Table of Contents

Applications registered in an Azure Active Directory (Entra ID) tenant are, by default, available to all users of the tenant who authenticate successfully.

Similarly, in a multi-tenant application, all users in the Entra ID tenant where the application is provisioned can access the application once they successfully authenticate in their respective tenant.

Tenant administrators and developers often have requirements where an application must be restricted to a certain set of users or apps (services). There are two ways to restrict an application to a certain set of users, apps or security groups:

  • Developers can use popular authorization patterns like Azure role-based access control (Azure RBAC).
  • Tenant administrators and developers can use built-in feature of Entra ID.

Supported app configurations

The option to restrict an app to a specific set of users, apps or security groups in a tenant works with the following types of applications:

  • Applications configured for federated single sign-on with SAML-based authentication.
  • Application proxy applications that use Entra ID preauthentication.
  • Applications built directly on the Entra ID application platform that use OAuth 2.0/OpenID Connect authentication after a user or admin has consented to that application.

Configure the app to require user assignment

Note Note: To update an application to require user assignment, you must be owner of the application under Enterprise apps, or be assigned one of Global administrator, Application administrator, or Cloud application administrator directory roles.

1️⃣ Sign in to the Microsoft Entra admin center.

2️⃣ Under Identity, select Enterprise Applications then select All applications.

9dkxBi8RrldBWAb3bVePwyBVYqvStIkNEM3bWgn6KdgUcxqKIXjkkqyVAJJs

3️⃣ Select the application you want to configure to require assignment. Use the filters at the top of the window to search for a specific application. For example, we selected Microsoft Intune PowerShell app.

4️⃣ On the application’s Overview page, under Manage, select Properties.

5️⃣ Locate the setting Assignment required? and set it to Yes. When this option is set to Yes, users and services attempting to access the application or services must first be assigned for this application, or they won’t be able to sign-in or obtain an access token.

97f5X0mYGvex2FgwIAcsjGiROeNWaKfcIWafVeuoms8fLGE38JHDCFLj49nR

6️⃣ Select Save on the top bar.

When an application requires assignment, user consent for that application isn’t allowed. This is true even if users consent for that app would have otherwise been allowed. Be sure to grant tenant-wide admin consent to apps that require assignment.

Assign the app to users and groups to restrict access

Once you’ve configured your app to enable user assignment, you can go ahead and assign the app to users and groups.

1️⃣ Under Manage, select the Users and groups then select Add user/group.

oIrh65Dx26gZEBktGIUM4gOE9fd0sQJlfqUuo2eTqLd9GM3EWR4rd0AG78l9

2️⃣ Select the Users selector. A list of users and security groups are shown along with a textbox to search and locate a certain user or group. This screen allows you to select multiple users and groups in one go.

ySz2fUDxZycujJLwy7iiLHyTKVv80tU5lYG7jdy5EIrWNq8fFmsWu41Zsp8S

3️⃣ Once you’re done selecting the users and groups. Select Assign to complete the assignments of the app to the users and groups. Confirm that the users and groups you added are showing up in the updated Users and groups list.

Wewwn7WFnI41eNqgNVcJs6vbJwb81ZRB72b5kx1hBshGIer4FD5LHcXPwPsT

As you can see, only assigned users can be access the app that we have configured.

PS C:\> Connect-MSGraph

UPN                                TenantId
---                                --------
[email protected] 09e3c00a-3596-42f5-abcf-6614a2865157
vgJ6kjwcJ7YY4ns9wHGpQOrDbUGSn5NOgx1Ow4FWhMqgweOvYsTRSwtv9js4

Read more: Microsoft document.

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

Difference Between Connect-Graph, Connect-MgGraph and Connect-MSGraph

Next Post

How to Create Azure App Registration Using Azure CLI PowerShell

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory