Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 760 Bytes

USER.md

File metadata and controls

42 lines (31 loc) · 760 Bytes

User API Methods


The following methods are all relating to the active user

Get the current user:
g.get_current_user()
Update current user's password:
g.upate_current_user_pass({
  "oldPassword": "old_password",
  "newPassword": "new_password",
  "confirmNew": "confirm_new_password"
})
Switch user to a given org in the current session:
g.switch_current_user_org(2)
Getting all organizations a user belongs to:
g.get_current_user_orgs()
Adding a given dashboard for the current user's favorites:
g.add_dashboard_star(DASHBOARD_ID)
Removing a given dashboard for the current user's favorites:
g.remove_dashboard_star(DASHBOARD_ID)