Notify_props missing

Summary

no ‘notify_props’ in API resp.

Steps to reproduce

curl -i -H ‘Authorization: Bearer xibsunqqdjgnxrb7dpskgtjyoe’ http://localhost:8065/api/v4/users/username/dmitriy_...n

Expected behavior

Expecting to get all details with ‘notify_props’ section
{
“id”: “string”,
“create_at”: 0,

cut-out

“roles”: “string”,
“locale”: “string”,
“notify_props”: {
“email”: “string”,
“push”: “string”,
“desktop”: “string”,
“desktop_sound”: “string”,
“mention_keys”: “string”,
“channel”: “string”,
“first_name”: “string”
},
“props”: {},
“last_password_update”: 0,
“last_picture_update”: 0,
“failed_attempts”: 0,
“mfa_active”: true
}

Observed behavior

HTTP/1.1 200 OK
Content-Type: application/json
Etag: 5.0.0.buqskqrwmjnhfgmpg83sx3o4ca.1529252455250.true.true
Expires: 0
X-Request-Id: bfdq633yijyu8dyxrzgietak9r
X-Version-Id: 5.0.0.5.0.0.4cad3529dbe48a55fb10adacc401e20e.false
Date: Sun, 17 Jun 2018 16:34:45 GMT
Content-Length: 494

{
“id”:“buqskqrwmj…3sx3o4ca”,
“create_at”:1507216885467,
“update_at”:1529252455250,
“delete_at”:0,
“username”:“dmitriy_…n”,
“auth_data”:"",
“auth_service”:"",
“email”:“t…n@fa…com”,
“nickname”:"",
“first_name”:“Дмитрий”,
“last_name”:"…",
“position”:"…",
“roles”:“system_user system_admin”,
“last_picture_update”:1509363181289,
“locale”:“ru”,
“timezone”:{“automaticTimezone”:"",“manualTimezone”:"",“useAutomaticTimezone”:“true”}}

Hi @dmittr,

Those fields should be set if you’re logged in as a system administrator or as the user that you’re requesting, but it looks like those aren’t set when using the /users/username route, so I’ll file a bug for that.

In the meantime, you can get the notify_props for the current user using the /api/v4/users/me route

Edit: Here’s the ticket: https://mattermost.atlassian.net/browse/MM-10980