Work with users, groups, and roles in custom apps and APIs
Role-based access control (RBAC) is a popular mechanism to enforce authorization in applications. The administrator assigns roles to different users and groups to control who can access to what content and functionality. Using RBAC with Application Roles and Role Claims, developers can securely enforce authorization in their apps with little effort on their part. Another approach is to use Azure AD Groups and Group Claims. In this module, you’ll learn how to use both Azure AD Groups and Application Roles to provide fine grained access control to an application.
Developer
Microsoft 365
Azure Active Directory
Module Objectives
By the end of this module, you'll be able to:
- Create a custom ASP.NET web app that is secured with Microsoft identity
- Demonstrate how to obtain security groups as a claim in the token and use them in the app
- Demonstrate how to use app roles to grant users access to an app
Units
Prerequisites
- Basic knowledge of OAuth authentication flows and terminologies
- Ability to develop with ASP.NET Core at the intermediate level
- Experience using Visual Studio Code at the beginner level
- Access to a Microsoft 365 tenant