API not showing all the workspaces

the login which is under https://api.anaplan.com this link are working properly and showing all workspaces but when i try to login in https://us1a.app.anaplan.com/ this link ,its not showing workspaces and even authentication failed.
Mean API not getting values when it is diff. link which uses Single Sign on also

Answers

  • hi @pankajnegi1920 ,

    API authentication doesn't support Single Sign On. Try to set your user as exception user in you workspace to get it working. https://anaplanbulkapi20.docs.apiary.io/#/introduction/getting-started/authentication

  • Hi @pankajnegi1920 If you are trying to pull the response with all the workspaces your account has access to (via API) you need to use the endpoint from the Apiary, that starts with https://api.anaplan.com and not with https://us1a.app.anaplan.com. The endpoint I am referring to can be found in the apiary under the title 'List user workspaces'. If you are planning to use the account with SSO enabled, you will need to use the CA Certificate Authentication method, and not the Basic Auth.

  • Hi @MilanaSkoko @pyrypeura firstly thanks for the responses.. I am from Pankaj's Team. we are not trying to login into SSO account through API rather to access all the granted Workspaces across multiple tenants (configured as non SSO accounts) but unfortunately when trying to validate the credentials those are not getting validated..

    And as Pankaj mentioned, we are using Apiary  https://api.anaplan.com only but not getting validated.. Let us try to capture the log if that will help us to explain the issue better.. in the meantime, all responses and suggestions are welcome..

  • Hi @CommunityMember126793 Using the following endpoint from the Apiary guide, you can retrieve all workspaces a user has access to within the user's default tenant:

    https://api.anaplan.com/2/0/workspaces?tenantDetails=true

    I am not sure I understand what you mean by 'trying to validate the credentials', but in order to Authenticate, you essentially need to:

    1. Generate the Authentication Token, while following these guidelines;
    2. Use that Authentication Token as a header in your API request to list all the workspaces.

    If you can provide me with all the details that are passed in your API request, (screenshot of the headers, endpoint, etc.) that would be useful.

    I hope this helps!

  • We are trying to access all tenants workspaces and not just default..

    after logging in we are able to access default WS but not the other tenant account where we are added as WSA.. this is the code we are using to authenticate our WS..

  • Hi @CommunityMember126793 Looking through our Apiary guide, I didn't find any endpoints that would allow you to see all workspaces across different tenants your user account has access to. You can confirm that if you go through this guide in detail. If this is something that, in your opinion, should be available, please go ahead and raise the Idea on our Idea Exchange. I have also found an existing idea already which you can go ahead and upvote:

    As a current solution to your issue, you can use separate user accounts for different tenants.

    I hope this helps!

  • I have upvoted the shared idea.. Thanks @MilanaSkoko for sharing detailed response quickly.. Appreciate it!