slack-api-docs icon indicating copy to clipboard operation
slack-api-docs copied to clipboard

Undocumented fields in user object

Open mpickering opened this issue 11 years ago • 6 comments

An "in the wild" user object contains a few more fields which aren't documented in the documentation.

  • status
  • real_name_normalized
  • is_bot
  • title
  • tz, tz_label, tz_offset

has_files also doesn't appear in the response.

skype and phone are also repeated in the user object and profile object. Which one takes priority and why are they repeated?

mpickering avatar Dec 22 '14 13:12 mpickering

Thanks for pointing this out. We'll get the extra properties documented soon.

The repeated "skype" and "phone" properties will always be the same - and you should prefer the ones in the profile object. The other ones are only returned for backwards compatibility with older clients.

paulhammond avatar Dec 23 '14 01:12 paulhammond

Hello! As a quick update to this, we do still have these changes to our documentation on our to-do list—we've not forgotten about them. Thanks for your patience!

awalla avatar Sep 04 '15 13:09 awalla

I'm confused why this issue is closed... I don't see any changes to address these issues.

drawks avatar Sep 28 '15 20:09 drawks

+1 it's unclear when tz is null and when it's set

matthewmueller avatar Mar 24 '16 06:03 matthewmueller

👍 to documenting real_name_normalized vs real_name. Thanks.

gasi avatar Feb 22 '17 15:02 gasi

The page https://api.slack.com/bot-users (all the way down) even contains instructions on using user.is_bot to ascertain bot status:

You can tell if a user object returned by our API is a bot user by checking the is_bot property.

It might be nice to update the user object doc at https://api.slack.com/types/user accordingly.

tyson-kubota avatar Jun 14 '17 18:06 tyson-kubota