Is there an API method for searching BC users and filtering by field? I’m hoping to do something similar to what is possible in the webUI
🗨 Link to Slack thread
Is there an API method for searching BC users and filtering by field? I’m hoping to do something similar to what is possible in the webUI
Seems like the frontend UI is using https://app.bettercloud.com/directory/users/v1/auth/saasusers
is it possible to query that programmatically?
You may be able to filter in that way via our GraphQL endpoint: https://developer.bettercloud.com/#/reporting/explore
Yep, for example you can do a GET https://api.bettercloud.com/api/graphql?query="{saasusers(filter: {displayValue: {eq: "justin.little"}}) { id }}"
, this will return all the saas user accounts associated with display name “justin.little”
https://developer.bettercloud.com/#/reporting/graph - this shows you all the different objects within the Graph API you can access, and you can use the link Mike posted to test the queries out
I believe these are the only filterable fields (SaaSUserFilter): https://screenshots.bettercloud.com/nOueQeOW
For example, the front end query looks like this:((employee_id.lowercase=="1045"))
But testing the graphql query with employee_id returns this error:contains a field not in 'SaasUserFilter': 'employee_id'"
Is this employeeId field coming from G Suite, Okta, etc?
I’ll have to circle back to see if that employeeId field is accessible via the saasuser object
Thanks Justin! That would be great. I’m trying to transform an employee ID value to a primary email address via a inbound request transformer
Nice! I’ll try to find that answer for you asap Gillen!
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.