It's all about the answers!

Ask a question

How can I get the list of email addresses of RTC users using OSLC?


Lipi Das (2612635) | asked Jul 26 '13, 3:12 a.m.
How can I get the list of email addresses of RTC users using OSLC?

3 answers



permanent link
Dinesh Kumar B (4.1k413) | answered Jul 26 '13, 3:25 a.m.
JAZZ DEVELOPER
https://localhost:403/ccm/oslc/users?oslc.properties=rtc_cm:emailAddress
or
https://localhost:403/ccm/oslc/users?oslc.select=rtc_cm:emailAddress

will return the user node with their email id

Comments
Lipi Das commented Jul 29 '13, 1:34 a.m.

Hi Dinesh,

With this query, I am not getting the email addresses, I am getting only the user IDs of the RTC users.


permanent link
Dinesh Kumar B (4.1k413) | answered Jul 29 '13, 3:23 a.m.
JAZZ DEVELOPER
here is a sample output that i receive for https://localhost:9443/ccm/oslc/users?oslc.select=rtc_cm:emailAddress , for your reference:

<oslc_cm:Collection oslc_cm:totalCount="45">
   
    <rtc_cm:User rdf:resource="https://localhost:9443/jts/users/rm_user">
    <rtc_cm:emailAddress>mailto:unknown</rtc_cm:emailAddress>
    </rtc_cm:User>
   
    <rtc_cm:User rdf:resource="https://localhost:9443/jts/users/custadmin">
    <rtc_cm:emailAddress>mailto:bdineshkumar%40in.ibm.com</rtc_cm:emailAddress>
    </rtc_cm:User>
   
    <rtc_cm:User rdf:resource="https://clm40.in.ibm.com:9443/jts/users/bob">
    <rtc_cm:emailAddress>mailto:bob%40jkebanking.net</rtc_cm:emailAddress>
    </rtc_cm:User>
   
    <rtc_cm:User rdf:resource="https://clm40.in.ibm.com:9443/jts/users/al">
    <rtc_cm:emailAddress>mailto:al%40jkebanking.net</rtc_cm:emailAddress>
    </rtc_cm:User>
   
    <rtc_cm:User rdf:resource="https://clm40.in.ibm.com:9443/jts/users/curtis">
    <rtc_cm:emailAddress>mailto:curtis%40jkebanking.net</rtc_cm:emailAddress>
    </rtc_cm:User>
   
</oslc_cm:Collection>

If the email address is not configured for the user, it shows up as unknown against mailto as seen for the functional rm_user above.

Comments
Kevin Lou commented Sep 30 '13, 10:51 a.m.

I tried the query and it works. However only 50 users are listed (from the URL I saw "..oslc_cm.pageSize=50.."). How can I get a full list, or change the page size on the URL? 


permanent link
Dinesh Kumar B (4.1k413) | answered Sep 30 '13, 11:02 a.m.
JAZZ DEVELOPER
hi Kevin,

I believe you have noticed the right parameter and you can append that to the query using an & (ampersand) and the parameter with a desired page size as its value, here is a sample:
https://localhost:403/ccm/oslc/users?oslc.select=rtc_cm:emailAddress&oslc_cm.pageSize=1000

Your answer


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