Returns the authenticated user and every active membership (member) they hold across organisations. Use this to resolve the organisation and member IDs needed by other endpoints. Memberships in discarded, restricted or blocked organisations are excluded, and for SSO-enabled organisations only the memberships the access token is authorised for are returned.
GET
https://api.employmenthero.com/api/v1/user_infoResponse Body
The authenticated user and every active membership they hold across organisations.
dataobject
iduuid
Unique identifier of the authenticated user.
membershipsobject[]
The active memberships the authenticated user holds across organisations.
Example
curl -X GET \ "https://api.employmenthero.com/api/v1/user_info" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ"Response
{ "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "memberships": [ { "member_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "organisation_id": "c3d4e5f6-a7b8-9012-cdef-123456789012", "organisation_name": "Acme Pty Ltd", "role": "owner", "email": "jane.citizen@example.com", "name": "Jane Citizen" } ] }}