Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 606 Bytes

USERS.md

File metadata and controls

32 lines (26 loc) · 606 Bytes

Users API Methods


The following methods are all relating to global users

Get all users:
g.get_all_users()
Get a user by ID:
g.get_user_by_id(USER_ID)
Search for users by a given property:
# Example, search for user by username:
g.search_for_users_by({"login" => "jdoe"})
# or by email:
g.search_for_users_by({"email" => "[email protected]"})
Updating user info:
g.update_user_info(USER_ID, {"email" => "[email protected]"})
Getting a given user's organizations:
g.get_user_orgs(USER_ID)