Missing User Attributes?

The docs show the /api/v2/users endpoint returning a “blocked” attribute:

    "last_ip": "",
    "last_login": "",
    "logins_count": 0,
    "blocked": false,
    "given_name": "",
    "family_name": ""

… but when I request the list of users from the endpoint I don’t get that attribute back in the response:

{"created_at"=>"2020-04-07T22:39:05.546Z",
 "email"=>"xxxxxx",
 "email_verified"=>true,
 "identities"=>
  [{"user_id"=>"xxxxxx",
    "provider"=>"auth0",
    "connection"=>"Username-Password-Authentication",
    "isSocial"=>false}],
 "name"=>"xxxxxx",
 "nickname"=>"admin",
 "picture"=>
  "xxxxxxx",
 "updated_at"=>"2020-04-30T17:10:04.277Z",
 "user_id"=>"auth0|xxxxxxxxxx",
 "last_login"=>"2020-04-30T17:10:04.277Z",
 "last_ip"=>"xxxxxxxx",
 "logins_count"=>17}

Am I doing something wrong here?

1 Like

Hi @dylanz,

I just tested it. If the user is blocked the attribute will show up as true, if they are not blocked, it will be undefined unless they have been previously blocked and then later unblocked and the attr is set to false.

Hope this helps,
Dan

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.