question

RalfdeGroot-8115 avatar image
0 Votes"
RalfdeGroot-8115 asked RalfdeGroot-8115 answered

Create dynamic membership based on Office license and jobtitle

Hi all,

We have 140 colleagues with an Office F1 license. From this group I want to make a group with just the truck drivers and the warehouse colleagues that have Office F1. That's about 80% of the group. However, I can't filter on the JobTitle 'warehouse employee' because this group contains users with F1 and E3 licenses. On the other side we have other functions that have an F1 as well. So I can't just use the group with F1 users.

I have tried the following rule but it comes back with 90 members instead of 120 . The weird part is that I have 2 users who are exactly the same and one is a member of the group and the other one not. I've tried to add the filter user.jobTitle but it's not allowed in addition to the below rule.

(user.assignedplans -any ((assignedplan.serviceplanid -eq "f07046bd-2a3c-4b96-b0be-dea79d7cbfb8") -and (assignedplan.capabilitystatus -eq "enabled")))

Is there a way without changing the Jobtitle of the users how I can make this work?

Thanks,
Ralf

azure-active-directoryazure-ad-group-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak-MSFT avatar image
1 Vote"
MarileeTurscak-MSFT answered

What expression did you use? I believe you can try with:

user.assignedPlans -any (assignedPlan.servicePlanId -eq "f07046bd-2a3c-4b96-b0be-dea79d7cbfb8" -and assignedPlan.capabilityStatus -eq "Enabled") -and (user.jobTitle -contains "warehouse employees")

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RalfdeGroot-8115 avatar image
0 Votes"
RalfdeGroot-8115 answered RalfdeGroot-8115 rolled back

Hi Marilee,

I've tried that option but that I receive the following error.

68037-image.png

My expression is:

user.assignedPlans -any (assignedPlan.servicePlanId -eq "f07046bd-2a3c-4b96-b0be-dea79d7cbfb8" -and assignedPlan.capabilityStatus -eq "Enabled") -and (user.jobTitle -contains "Magazijnmedewerker")



image.png (18.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RalfdeGroot-8115 avatar image
0 Votes"
RalfdeGroot-8115 answered

Anyone with a solution or perhaps a different idea?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.