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

Validating whether the user exists in RTC

Hello,
              I have user name and Email Address.
1).  Is there any possibility to validate whether the particular user has an account in RTC??
2).  There is a possibility of fetching contributorHandle based on the user id . Is there any way to fetch the same based on the user name or Email Address??
            Thanks in advance!!            

Regards,
Rajagopal

0 votes


Accepted answer

Permanent link
See the Java Doc for IContributorManager class.  There is a fetchContributorByUserId method.  Otherwise you might have to fetch all the contributors and filter against what you have.
Rajagopal Subhash selected this answer as the correct answer

0 votes

Comments

Thanks for the reply!!
The problem is I will not get UserId everytime, I have only username and email Id.
I am using
teamRepository.contributorManager().fetchAllContributors() method and then validating based on User name and email Address.
I suppose thats the only way we can validate the user

Instead of creating an extension you could have used the repotools command to export the users and then searched in that file as described here: https://rsjazz.wordpress.com/2012/10/12/changing-the-jazz-user-id-using-the-rtc-plain-java-client-libraries/

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
× 10,938

Question asked: Jul 16 '15, 10:42 a.m.

Question was seen: 2,097 times

Last updated: Jul 17 '15, 3:09 a.m.

Related questions
Confirmation Cancel Confirm