API get a list of all users attributes

We trying to get a list of all user attributes. For example the organization or department attribute, so we like to make a API call to get all the organizations users are working for.

Is this possible with the API, or do I need to loop through all the users to create a array by ourself?

You’ll have to iterate through all account. It might make more sense to use an ENUM for this (if they are finite). I think what you are looking for is the ability to do a DISTINCT value query, and that is not possible with the API today.

1 Like

No problem, we will do this.

1 Like