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.
Accepted answer

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/
One other answer

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