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

Automating the user account creation in RTC.

Hello All,

We are trying to create the user account automatically.

Curently we have got a sample code from : https://www.ibm.com/developerworks/rational/library/automate-management-rational-team-concert-users/

However I am finding difficulty in identifying the jar for : CreationInfo, as this this showing error.

Below is the sample code snippet.

public CreationInfo createObject(final String typeName,
            final Map<String, ?> state,final Map<String, Object> returnedState,
            final List<String> propertyNames,final IExternalRepositoryConnection externalConnection,final IProcessArea processArea) {
                                 
            URI uri = null;
            String address = (String) state.get("address");
            String name = (String) state.get("name");
            String userId = (String) state.get("user_id");
            Map<String,String> UserMap =new HashMap<String,String>();             
            Map<String,String> externalState = new HashMap<String, String>();         
// Some more here
}

Can anyone assist me on which jar/library to be used for this.

Thanks.


0 votes


Accepted answer

Permanent link

 See the snippets that ship with the plain java client libraries. Also see https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/ and the related posts, plus https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ https://rsjazz.wordpress.com/2017/03/29/managing-contributor-licenses-using-the-plain-java-client-libraries/ 


You can also search the forum because we have answered all these questions many times here.

Jazzuser user selected this answer as the correct answer

1 vote

Comments

Thanks a lot for the reply Ralph. This links helped me :)


One other answer

Permanent link

While I cannot answer your question directly, I believe you can ignore this class completely. The code that you mentioned is in the class SyncUserRTCToExt, which is used to synchronize users from RTC to the external user repository. Unless you really have to do it, for example, migrating from one type of user repository to another, you don't need to worry about this class at all.

1 vote

Comments

Thanks a lot for the reply Donald.
As you suggested, we will not consider that class now.
But
1. is there any way i can check if the user already has access to RTC ?
2. How to give access to some specific role like team member, project lead ?
2. also if I want to provide access to particular project area ?

Are there any API s or sample codes ?  so that i can build upon ?
Please help me on this.

Thanks

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
× 6,132
× 457
× 411

Question asked: May 02 '17, 1:10 a.m.

Question was seen: 3,774 times

Last updated: May 03 '17, 2:16 a.m.

Confirmation Cancel Confirm