I am trying to understand difference between Role & Group, Scope in Azure AD.
I am trying to create a Protected Web API in Azure AD, please correct me if I my understanding below is wrong.
Group --> Active directory group created, where users who need access will be added to the group, please correct if below groups are not planned correctly.
**Groups:**
API_Read_AppName --> Group1
API_ReadWrite_AppName --> Group 2
I am assuming these two groups one is read and other is readwrite are created and then users will be added to these groups who wants access to my protected WebAPI
Role --> This is the role which determine the access level to my protected WebAPI
**Roles:**
ReadEMCS
ReadWriteEMCS
I will be creating above roles and assign these roles to the group created above:
Role --> Group
ReadEMCS --> API_Read_AppName
ReadWriteEMCS --> API_ReadWrite_AppName
I am confused with above setup as my group already has Read group & ReadWrite group and users will be added to those groups and based on the user who in the group will have respective access, what is my Roles doing in my case ? Do I need Roles at all as access is already maintained by group in this case.
- What are Roles used for when using groups we are able to manage access ?
- What are the use cases where we need a Role & Groups to manage access ?
- What is a Scope in Azure AD and what it is used for ?