How to get org_id by user_id
Answeredhttps://developers.podio.com/doc/spaces/get-space-22389
I need to get a list of all workspaces.
I currently have the user_id returned from the authorisation method (server-flow).
How do I get the org_id when the returning object only returns the user_id?
$status = $api->user->getStatus();
Look forward to your answer!
James
-
Hi James,
You can get all organizations and spaces the current user is a member of with $api->org->getOrgs()
See return value example at https://developers.podio.com/doc/organizations/get-organizations-22344
All the best,
Andreas
Please sign in to leave a comment.
Comments
4 comments