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

API for determining if the current user is an administrator

Jazz Foundation Current User Service gives information of name, mail box, etc about the current user.

Is there a similar service that would also let me to determine if the current user is an jazz server administrator, i.e. if "JazzAdmins" check-box is checked?

Thanks

0 votes



One answer

Permanent link
Hello,
This work item may have added a feature you can use to get the information:

It tracks work to get all users in a particular group. From there, you could see if the user you are interested in is in the group:
Require a Reportable REST API that given a group name (e.g. JazzAdmins) returns its members (users). (232160)

Ruby
Martha (Ruby) Andrews

1 vote

Comments

Hi Martha,

Thank you very much - this is exactly the information I need.

Do you have any code snippet to show me how the API can be accessed by a java client?

For current user service I use the string constant "http://jazz.net/xmlns/foundation/1.0/CurrentUser" to obtain IServiceResource handle by using

IDiscoveryHelper helper = ...
IServiceResource currentUserServiceDescription = helper.getService(
                "http://jazz.net/xmlns/foundation/1.0/CurrentUser", null);

I am not sure what service constant should be used to get the IServiceResource handle for the IExternalUserRegistryInfoRestService service.

Thanks,

Weiping

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

Question asked: Oct 02 '13, 6:31 p.m.

Question was seen: 4,939 times

Last updated: Oct 03 '13, 7:52 p.m.

Confirmation Cancel Confirm