TorbenHedemannB_Er | 2023-01-11 22:26:55 UTC | #1
Hi,
How do I get a list of users in one Division that has 'All Division' on one or more roles ?
Hope my question make sense :slight_smile:
BR Torben
Eos_Rios | 2023-01-12 02:17:44 UTC | #2
There is no searching of users by role, see here.
The closest you could get is to run GET /api/v2/users with Expands=authorization and iterate through it, to extract out the ones who are in the division you want and I think have a permission that begins with 00000000-0000-0000-0000-000000000000 in the access list.
You could pre-emptively narrow it down if you know the user id of every person in your target division and feed that to the ids parameter of [GET /api/v2/users]
system | 2023-02-12 02:18:10 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 17948