Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
nmoses
Contributor
Contributor

Accessing the Talend Swagger/Public API with personal access token: which roles??

Hello,

I keep getting a 401(Unauthorized) response on all the Talend Swagger/Public API requests after entering a valid token hash that I've just generated. Is it a question of roles I need to attribute to a particular user, or is there some other prerequisite?

For info: v2.5 and here are all the roles my user is assigned before I create the token:

0695b00000Ic7YXAAZ.png

Thanks,

nmoses

Labels (4)
3 Replies
Anonymous
Not applicable

Hello

 

To have full access on the API, it's better to have full privileges on

Management Console

 

https://community.talend.com/s/article/Using-the-Talend-Cloud-Management-Console-Public-API-O2Ndn

 

  • Talend Cloud Management Console access credentials (can also be used to access API)

 

 

changpinghsiao
Contributor
Contributor

I am also interested in knowing the answer, but Talend doesn't seem to provide it.

I tried a little, and Operator role has Management Console and Studio applications and seems to have the ability to run some API methods on the public Talend Cloud API at https://api.us.cloud.talend.com/tmc/swagger/swagger-ui.html#!/executions/execute.

changpinghsiao
Contributor
Contributor

@Nicholas Moses​ 

I just found out today that as long as you are authorized in https://api.us.cloud.talend.com/tmc/swagger/swagger-ui.html, you just need the following combined permissions (which are assigned for the default Operator role, which also has a Studio permission) in the Management Console application.

  1. Operations - Manage
  2. Run profiles - Manage

0695b00000PLXrtAAH.pngAlso, please make sure you add Bearer before your token, like shown below.

"Bearer xxxxxxxxxx"

0695b00000PLXsDAAX.png 

I hope this helps.