I'm having trouble creating a dynamic security group in Entra ID where I want to filter users based on the `employeeId` property. Specifically, I'm trying to use the greater than (gt) and greater than or equal to (ge) operators to include users with employee IDs over 100, like this: `(user.employeeId -gt "100")` or `(user.employeeId -ge "100")`. However, when I attempt to create or validate these rules, I receive an error saying, 'Unable to complete due to service connection error. Please try again later.' The group won't save, and during validation, there's a grey question mark icon. I've checked my tenant and it seems to be functioning well overall, as other comparison operators like `(user.employeeId -eq "100")` work fine. It appears that Entra ID might not support these comparison operators for employeeId. Has anyone faced this issue or can explain what's going on? Any insights would be great!
3 Answers
Yeah, it looks like you can't do numeric comparisons with employeeId because it’s being interpreted as a string. You might want to consider using a custom attribute that can hold it as a numeric type if that's an option.
From what I gathered, Microsoft's documentation suggests that the `-ge` and `-le` operators are primarily supported for the `user.employeeHireDate` property instead of `employeeId`. Sounds like a limitation on their end.
I think the issue might be because the employee ID is treated as a string rather than a number in Entra ID. So when you try to use those comparison operators, it doesn't work as you'd expect. They might only function with properties that are definitely numeric overall. You could try using a different attribute or casting it as an integer if that's possible.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically