Warm tip: This article is reproduced from serverfault.com, please click

how to do authentication and authorization for the users for the specific regions in azure AD?

发布于 2020-12-01 02:41:32

net core application. I am trying to implement authentication and authorization. I have users they are split into multiple regions. For example I have below regions.

GE GSAS
 - user1
 - user2
APAC
 -user3
 -user4
SE&A
 -user5
 -user6

These users have different permissions or roles. For example, RegionalAdmin,GlobalAdmin,Users etc These users will be creating some orders in the portal. For example, Regional head can reassign orders within that region only to other users. For global head he/she can reassign orders to anyone. Users can create orders and view delete and users cannot reassign orders. All these users are part of Azure AD tenant. Now I am trying to implement authentication and authorization. I started thinking the design strategy like this, I can create groups as per regions and add users to groups. Based on the groups I can have authentication or authorization. But these users have different permissions like RegionalAdmin,GlobalAdmin etc and these users have some extra functionalities aloowed in web/api permission. Can someone help me regarding this and how to organize groups or roles with respect to above scenario. Any help owuld be greatly appreciated. Thank you

Questioner
Niranjan Godbole Hosmar
Viewed
0
Dinakar J 2020-12-02 03:32:33

Assuming regional admin you mentioned as a custom role in your application(as there is no such role in AAD), it is always better to use the administrative-units and a suggestable approach would be to create groups separately for regional admin, global admin users and assign roles to these groups accordingly.

A user can be assigned to multiple groups and roles can be assigned to individual users/groups.

Authorize applications based on the role permissions granted by the administrator to groups. Please refer this link for the detailed documentation on how to create/manage roles for an application in Azure AD.