get_users | R Documentation |
It takes your Email Id, authentication token, sub-domain and parse all the users in a list. It iterates through all the pages returning only 100 users per page until the "next_page" parameter becomes null indicating there are no more pages to fetch.
get_users(email_id, token, subdomain, start_time, user_role = "all")
email_id |
Zendesk Email Id (username). |
token |
Zendesk API token. |
subdomain |
Your organization's Zendesk sub-domain. |
start_time |
String with a date or datetime to get all tickets modified after that date. |
user_role |
User role, one of "all", "end-user", "agent", or "admin". |
It's not a good practice to write down these authentication parameters in your code. There are various methods and packages available that are more secure; this package doesn't require you to use any one in particular.
The start_page parameter is useful if you have many users. Each page contains 100 users. Zendesk does not have an incremental method for pulling users by date but after you retrieve all of your users once, you can then increment your start page to something that will limit the number of users you are re-pulling each time.
If you are pulling partial lists of users be aware that you will not get updates on older users. You will only get recently created users, not modified/deleted users and their modified data nor updated last login dates.
Data Frame with user details
https://developer.zendesk.com/rest_api/docs/support/users
## Not run:
users <- get_users(email_id, token, subdomain, start_time = "2025-01-01 12:00:00")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.