We have added a new placeholder [[@User.IsMemberOfAADGroup('Type existing Azure AD group name')]]
Note 1: to properly use this function users have to allow third-party cookies in their browser
Note 2: Nested security groups are not detected by this function
To use this function placeholder, you have to approve the Directory.Read.All Graph API request from Solution Studio in SharePoint admin center ->API access once per tenant.
(https://[YourTenant]-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement)
The API access request will appear in the following cases:
- Customize forms with Modern Forms
- Add List Actions
- Deploy solution with Modern Forms or List Actions
After approving the request, you can use it in the Expression Builder -> Context Objects -> User:
Limitation
There is a limitation where a user can be a member of up to 1000 groups, so the function will only retrieve membership information for the user's first 999 groups.