One Star

Add Roles to admin account using metservlet caller

Hi ,

I have a requirement to add Operation manger role to default admin account using metaservlet.

I have gone through the sample metaservlet call, but could not find any way to update the user roles.

 

I tried using 

{
"actionName": "setRoleLimitation",
"authPass": "admin",
"authUser": "admin@company.com",
"limitation": true,
"rightKey": "JOB_CONDUCTOR_MANAGMENT,SERVERS_MANAGMENT, AUDIT_MANAGMENT, SOA_MANAGMENT, DASH_SOA_MANAGMENT,DASH_CONNECTIONS,DASH_JOBS,COMMANDLINE_MANAGMENT",
"userRole": "Operation Manager"
}

 

but getting below error not sure how to get it working

{"error":"No enum constant org.talend.gwtadministrator.client.global.menu.RoleProvider.Roles.Operation Manager","returnCode":1}

 

Thanks,

Amit Kumar

  • Talend Administration Center
Tags (1)
1 REPLY
Moderator

Re: Add Roles to admin account using metservlet caller

Hello,

Could you please indicate on which build version you got this issue?

Best regards

Sabrina