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