Ajmal Muhammad
Ajmal Muhammad

Reputation: 695

Get Redmine user details by user email id

Is there any redmine REST API available for company admin to get the details of user by giving users email id.

details like redmine KEY etc

Upvotes: 3

Views: 3083

Answers (2)

Antony Novitsky
Antony Novitsky

Reputation: 1

You can install this Redmine Shared API

This is a plugin share some endpoints of API.

New endpoints for NON-admin users

[GET] /shared/custom_fields.xml | .json
[GET] /shared/users.xml | .json
[GET] /shared/settings.xml | .json

New endpoints for NON authorized (public) users:

[GET] /public/settings.xml | .json

Upvotes: 0

Max Tepkeev
Max Tepkeev

Reputation: 2786

Yes there is, you can do what you want in 2 API requests:

1) http://your-redmine-url/[email protected]

Using this request you will get basic details for user with email [email protected]

2) http://your-redmine-url/users/193.json?include=memberships,groups

Using this request you will get additional details for user with ID 193 (which we got from previous request) like user's API key, status etc.

Also note the following:

  • you need to use account with admin privileges to get these additional details
  • user's API key is only available through API starting from Redmine 2.3.0
  • user's status is only available through API starting from Redmine 2.4.0

All this info is from Redmine docs, which you can find here.

Upvotes: 8

Related Questions