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

Java API - How to get a Contributor by Name?

Hello,
working with both CLM 4.0.7 and 6.0.3, I'm building some code to get Contributors, and if they cannot be found import them from LDAP, as part of a user management utility.  I know how to get all users for the repository or specific users by ID but there is no method in teamRepository.contributorManager to fetch Contributors by name.  I would expect there to be one that returns a list, but no luck.

Does anyone know of a way to do this?  Something internal (again) perhaps?  I want to avoid fetching all (thousands) of users then interrogating that list to see if a user is present, if at all possible, as that's a really inelegant solution and will surely gobble up a lot of RAM (I've no idea how much per 1000 Contributors, say).

Can anyone help?

0 votes

Comments

 I don't have an answer. I don't think there is a simple method. Note that you might only get contributor handles and you could resolve them in batches. You can check if contributors have a supporting QueryModel.ROOT and try if that allows to query and search by name.

Thanks Ralph, that's pretty much what I suspected.  To me this an obvious thing to want to do - my organisation, and I'm sure many others, have codified userIDs so if that's not provided, being able to search on name, as you can through an RTC client, is crucial.  This is also why I was wondering if there's an internal method - we have to resort to internal for certain other common admin functions ....

I'll try your suggestion though I confess I'm not optimistic!


Accepted answer

Permanent link

 Cliff, please find the answer to your question here: 

Query Models or how to find stuff in the RTC API

Cliff Gardiner selected this answer as the correct answer

1 vote

Comments

Marvellous, thanks Ralph.  What would we do without you?

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,952

Question asked: Jan 26 '17, 3:54 p.m.

Question was seen: 3,984 times

Last updated: Feb 15 '17, 3:18 a.m.

Confirmation Cancel Confirm