Forum Discussion

Az_Iz's avatar
Az_Iz
Copper Contributor
Oct 14, 2025

Add members to a dynamic sec-grp excluding users with a specific "serviceplanid" assigned license

Hello, 

I am trying to populate dynamically a security group that shoud contain all members with a specific attribut value and trying to filter the groupe membership based on a serviceplanId assigned to members 

 

(user.extensionAttribute9 -startsWith "83") -and (user.accountEnabled -eq True) -and (user.mail -ne null) -and (User.AssignedPlans -any (assignedPlan.servicePlanId -ne "818523f5-016b-4355-9be8-ed6944946ea7" -and assignedPlan.capabilityStatus -eq "Enabled"))

 

How to exclude members with the ServicePlanId : "818523f5-016b-4355-9be8-ed6944946ea7" from the list of the groupe members ? 

No RepliesBe the first to reply

Resources