cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
154
Views
0
Helpful
1
Replies

REST API to list organizations that authorized my service app

ravri
Level 1
Level 1

Hi, Is there a REST API to list all the organizations that authorized my service app?

I'm aware of the webhook that notifies me with this information, but what happens if I missed the notification, or if my application just started and need all organizations that previously authorized, or if I'm blocked for incoming connections?

Thanks

1 Accepted Solution

sandiban
Cisco Employee
Cisco Employee

Hi @ravri

Thanks for your patience so far!
So you can use this Admin Audit Events API to check the required data - https://developer.webex.com/docs/api/v1/security-audit-events/list-security-audit-events (which would satisfy your requirement upto a certain level)
To call this API, you should must have the scope - "audit:events_read" in your token and if you're using a Service App token for making this API request, make sure this scope is present in the Service App scope list.
But through this API, it won't show as a certain User authorized with your Service App from this Org, rather it'd show as a Sign-in happened in your Org from this User (and the user's OrgID as well).
That way it might cause a limitation for the exact event you're looking for.
And even in case of sing-in failures/blocked results, this API won't help. It'd list only the successful sign-ins and sing-outs.

And definitely through the Webex Webhook, you can make use of the "serviceApp" event and get those Service App authorizations notification details stored.
Let us know for any further queries.

Regards!
Sandip

View solution in original post

1 Reply 1

sandiban
Cisco Employee
Cisco Employee

Hi @ravri

Thanks for your patience so far!
So you can use this Admin Audit Events API to check the required data - https://developer.webex.com/docs/api/v1/security-audit-events/list-security-audit-events (which would satisfy your requirement upto a certain level)
To call this API, you should must have the scope - "audit:events_read" in your token and if you're using a Service App token for making this API request, make sure this scope is present in the Service App scope list.
But through this API, it won't show as a certain User authorized with your Service App from this Org, rather it'd show as a Sign-in happened in your Org from this User (and the user's OrgID as well).
That way it might cause a limitation for the exact event you're looking for.
And even in case of sing-in failures/blocked results, this API won't help. It'd list only the successful sign-ins and sing-outs.

And definitely through the Webex Webhook, you can make use of the "serviceApp" event and get those Service App authorizations notification details stored.
Let us know for any further queries.

Regards!
Sandip