repotools create user with jazz admin permissions
I need to create a new user using repotools command under jts and want to assign this new user jazz admin license.
I saw an example of creating a new user but how to assign a admin rights to that user was not mentioned.
My current CLM setup is configured to use LDAP as user registry, can i still go ahead with creating user using repotool command. We have enterprise topology implementation of CLM.
Accepted answer
There is nothing like a Jazz admin license. There are several concepts of "admin rights". It would be beneficial if you could be clearer on what you want to do in the first place.
One concept relevant for administration is the repository role JazzAdmin, which allows the user to see all data and also make themselves administrators for any project area.
To add to Bhagaths answer, if one wants to do any automation around creating users while using LDAP, you would
-
Use LDAP automation tools to create the user and assign it the Jazz repository roles including JazzAdmin
- Synchronize the user from LDAP using repotool syncUsers
I have not tried this with LDAP, but the repotools command createUser allows to assign a license to a user. It updates the user if it exists. An example below.
If that does not work, https://rsjazz.wordpress.com/2017/03/29/managing-contributor-licenses-using-the-plain-java-client-libraries/ might be able to.
Comments
My point of worry is, my CLM setup is configured with LDAP, and currently I am not able to login using my JazzAdmin account.
I though to create a new user with JazzAdmin rights to perform functionality.
Or else if you can suggest where to check whether user is able to get authenticated from LDAP or not, or if there are some issue at CLM server side, because with that same user and password combination I am able to login to my mail server and other applications.
The JazzAdmin repository role is defined in LDAP by group mapping. So creating a new admin user with that mapping that is synced in would be sufficient. But you would need the admin user to trigger the synchronization to make it usable instantly.
You could simply change the password of your current admin user in LDAP and should be able to log in. As long as your LDAP connection with CLM works, that should not be a problem.
You could create another admin user with JazzAdmin repository role. It might not fix your problem, if the Admin password you currently use is correct.
You should
1. Try to change the current admins password in LDAP
2. If that does not help check your server log files and your LDAP log files to see what the problem is.
That really helps @Ralph Schoon
Just want to know one thing, do we have any provision to change my current LDAP server to new LDAP server in my running CLM server.
Also do i have the facility to shift back to CLM's own user management feature from LDAP server.
I think that is possible, but how to depends on the deployment details and doing it likely requires a good understanding of what you are doing. Dependent on the application server, there are likely several xml files that need changing and I would assume you would also have to change advanced properties in the Jazz application configurations.
I will not detail this further.
I also do not see why you would want to do that. You want to fix your admin user and their password. Unless we are missing information this is something that only needs fixing in LDAP.
Thanks for your support @Ralph Schoon
CLM application is working fine from the user management point of view, above question was just about the curiosity as we may face some issues related to user login and management from LDAP side.