cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
563
Views
0
Helpful
4
Replies

Getting 403 error in get organization API

roshani123
Level 1
Level 1

When I used my wholesaler OAuth access token to retrieve the organization list, I received a 403 error. The error response is provided below. Could you please help us understand why this error occurred?

Response : 

{
    "message": "GET failed: HTTP/1.1 403 Forbidden (url = https://atlas-api-a.wbx2.com/admin/api/v1/orgadmininfo, request/response TrackingId = ROUTERGW_65d9d5f1-9a70-4fab-8b89-90aba19a6224, errorCode = '403', error = 'Forbidden')",
    "errors": [
        {
            "description": "GET failed: HTTP/1.1 403 Forbidden (url = https://atlas-api-a.wbx2.com/admin/api/v1/orgadmininfo, request/response TrackingId = ROUTERGW_65d9d5f1-9a70-4fab-8b89-90aba19a6224, errorCode = '403', error = 'Forbidden')"
        }
    ],
    "trackingId": "ROUTERGW_65d9d5f1-9a70-4fab-8b89-90aba19a6224"
}
4 Replies 4

dtibbe
VIP Alumni
VIP Alumni

In the Community Forum, there are many community users answering your questions. We do not have access to any traces in the backend. If you want someone from dev support to have a look at the tracking id it's best to open a case via devsupport@webex.com.

The Webex API organization Endpoint (https://developer.webex.com/docs/api/v1/organizations) requires org admin previledges as well as it requires the corresponding scopes for your integration.

Please also note that hint at https://developer.webex.com/docs/api/guides/webex-for-wholesale#managing-your-customer-organizations for the Wholesale API


If you find any attempt to manage your customer via API set returns a 403 Forbidden response, it may be that your temporary access to the customer has expired. In such cases, call the GET Organizations Details API again to re-establish the desired access before proceeding with your management operation.

Note: You can expect a short delay (5 seconds) after the above request before management access to the customer organization is fully established.


 

Hello @roshani123,

Thanks for your patience so far!
I checked the error trackingId you shared -  "ROUTERGW_65d9d5f1-9a70-4fab-8b89-90aba19a6224" and yes, it's failing with "403 - Forbidden" status.
As per the log, the reason is listed as you don't have "Full Admin" or, at least "Read-only Admin" role with your Webex Account.

Now, I'm not exactly sure the scenario you're trying here with this API request, are you trying to fetch the details of your Partner Orgs or, your own Org?
If you're trying to read your Partner Org details where you've access, then you should definitely have the "Partner Full Admin" role (or, say 'id_full_admin') with your Webex Account.
If you're trying to list your own Org details, then you should definitely have the "Full Admin" or, "Read-only Admin" role to your account.

But I'm afraid you don't have any of these roles with your current Webex account or, to the Token you're using for this API request.
Otherwise at least your own Org details would have shown in the Response.

If you think that's not this case and you already have these roles as I shared above, then I'd say better you share us the details to devsupport@webex.com and a Support case would be raised in our queue, where we can discuss this further in more detail.
We might need your Token that you're using for this API request, but sharing Token in such open public platofrm like Community forum would not be good.
So, if the provided details don't answer your queries, let's discuss through the Support case channel.

Regards!
Sandip

Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back on this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"

BjoernMartin
Spotlight
Spotlight

Hello

Check this endpoint -> List organizations                                                                                                                                      List all the organizations that are visible to your account
https://developer.webex.com/docs/api/v1/organizations/list-organizations

Thank you for your input. We also used this API to retrieve the organization, but we couldn't display the organization list with my access token. Please review my error tracking ID to identify the issue, and let us know so we can resolve it more easily.