I am looking to create a transform, when the user is a member of the Azure AD group. I used the accountPropertyFilter option in the account attribute transform, and it seems not to be working.
What should be accountPropertyFilter to be used to get user’s group in Azure AD.
{
"name": "Member of specified AD Group",
"type": "static",
"attributes": {
"groupMember": {
"attributes": {
"ignoreErrors": "true",
"values": [
{
"attributes": {
"sourceName": "Azure Active Directory",
"attributeName": "sAMAccountName",
"accountPropertyFilter": "(groups.containsAll({\"Test-Group\"}))"
},
"type": "accountAttribute"
},
"NONE"
]
},
"type": "firstValid"
},
"value": "#if($groupMember == \"NONE\")NOT IN GROUP#{else}IN GROUP#end"
},
"internal": false
}