Is there any java api to change the role or permission for a logged-in user?
![]()
Can I change the role or permission in CCM through Java API?
|
One answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Feb 04 '16, 5:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
What do you want to achieve and why?
A Custom Condition to Make Attributes Required or Read-Only by Role Version 2 shows API to read the roles. You can also use the API to set the role as described in https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/, however, you must have the permission to do so! If you don't have the JazzAdmin repository role and no permission to save the process, you can't. You can't break the system and elevate you to an admin. Comments Thanks for your answer.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The API does have the permissions and rights of the user using it. It (the server) will not allow a user to give himself more permissions (Except he is administrator in a project area, where he can assign himself permissions as he likes, or he has the JazzAdmin permission where he can pretty much give himself all the permissions available everywhere) . So: No.
ok, thanks very much. |