Premium app - Get customers' organization id

Hello,

We are building a premium app and we would like to get the customers' orgID during installation.

There is an oauth client on our side, so all users in all orgs in a region are able to use this client and this client would provide us access to any user that installs our premium app.

If I make a HTTT (GET) request at /api/v2/organizations/me, I am getting back my orgID. I am trying to figure out if there is a way to find each users orgID.

Could you please tell me if this concept is possible and which steps I should follow to implement it?

Thank you!

Hello,

I am not sure I understand your question.

When a customer purchases a premium application, a new integration will be made available in his Genesys Cloud environment (the new integration corresponds to your Premium Application wizard/script).

An Admin of this Genesys Cloud environment can enable this integration (the premium App wizard) and can then access the "setup page" of the Premium Application wizard (the script you have to create for your Premium Application for the wizard/configuration part).
When the admin runs the wizard, as the script is leveraging Platform API and the current user credentials (the admin), you can perform Platform API requests ("on behalf of the admin").
You can know what the orgId of this user is with a GET /api/v2/organizations/me. It is also available via GET /api/v2/users/me

Once the Premium Application wizard has been run, your script should have created the necessary objects in the customer's Genesys Cloud environment so that your integration is working.

All users from that Customer/Genesys Cloud environment share the same orgId.

I haven't understood what you mean by "if there is a way to find each users orgID"

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.