How to register an application to get the Security Group in Claims in your Azure Function
Antoine
Posted on May 10, 2020
Photo by Maxim Zhgulev on Unsplash
Problem
In our Azure Function, we need to check if the user is a member of an existing Active Directory group.
Solution
In order to to that, we need to:
- set up Authentication in Azure Function, setting in "Authentication / Authorization" the button "App Service Authentication" to on and use Azure Active Directory as an Authentication Providers (using Express setting: Do not turn on Common Data Service !).
- got to App Registrations in yout Azure Active Directory and find your application. Go to the Manifest blade, and modify it to set:
"groupMembershipClaims": "SecurityGroup",
You should see the security groups added in the ClaimsPrincipal of your Azure Function.
Hope this helps !
đź’– đź’Ş đź™… đźš©
Antoine
Posted on May 10, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
microsoft Why Students Should Explore Microsoft Azure: The Cloud Platform for Your Future 🚀
October 19, 2024