You can filter the user by various parameters in onelogin. See the page in the API docs for filter options.
ol_users_get(con, ...)
a 'OneLogin' connection
filter parameters, optional; see API documentation
A tibble of users and their attributes
The id column in the returned tibble is the user_id for any of the user functions that are by id.
# NOT RUN { if (interactive()) ol_users_get(onelogin()) if (interactive()) ol_users_get(onelogin(), firstname = "name") # }
Run the code above in your browser using DataLab