Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



One answer

Permanent link
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.


0 votes

Comments

Thanks for your answer.
My scenario is :
 I can not upload components through API into a stream because of my limited role. And  I am JazzGuests and JazzUser in repository, team member and scrum master in project area.
So what can I do to solve this probleam? what permissions or roles I have can solve this probleam?

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.

This is not an issue that needs an API to solve it, this is an issue due to business conduct  guidelines or other reasons and you need to talk to the project administrators about your need and figure a way to solve this with them.

ok, thanks very much.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 382

Question asked: Feb 04 '16, 4:44 a.m.

Question was seen: 3,794 times

Last updated: Feb 13 '16, 8:34 p.m.

Confirmation Cancel Confirm