It's all about the answers!

Ask a question

Validating whether the user exists in RTC

Rajagopal Subhash (1226) | asked Jul 16 '15, 10:42 a.m.
              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!!            


Accepted answer

permanent link
Kevin Ramer (4.5k8178197) | answered Jul 16 '15, 1:38 p.m.
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

Rajagopal Subhash commented Jul 17 '15, 1:14 a.m.

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

Ralph Schoon commented Jul 17 '15, 3:09 a.m.

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:

Your answer

Register or to post your answer.