Project

General

Profile

Actions

Feature #36303

closed

Include avatar URL in Users API

Added by Go MAEDA over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I suggest including the avatar URL in the user's API.

{
  "user": {
    "id": 1,
    "login": "admin",
    "firstname": "Redmine",
    "lastname": "Admin",
    "created_on": "2006-07-19T17:12:21Z",
    "updated_on": "2021-12-13T10:03:30Z",
    "last_login_on": "2021-12-11T07:06:41Z",
    "passwd_changed_on": null,
    "avatar_url": "https://www.gravatar.com/avatar/982b6086063a22d85509455d8e31cca2" 
  }
}

Currently, it is difficult to display a user's Gravatar image when developing an application using the REST API. This is because Users API response doesn't include Gravatar URL. Although you can generate a Gravatar URL if you know the email address, email addresses are usually hidden for non-admin users.

This feature is very useful for developers who are building Redmine clients using REST API.


Files

36303.patch (2.96 KB) 36303.patch Yuichi HARADA, 2021-12-22 06:09
36303-v2.patch (3.14 KB) 36303-v2.patch Go MAEDA, 2021-12-30 10:19
36303-v3.patch (3.29 KB) 36303-v3.patch Go MAEDA, 2022-01-20 14:53

Related issues

Related to Redmine - Defect #37157: Internal server error when trying to retrieve AnonymousUser's information via Users APIClosedMarius BÄ‚LTEANU

Actions
Actions

Also available in: Atom PDF