# Getting more discourse user data when using discourse as identity provider

**URL:** https://meta.discourse.org/t/getting-more-discourse-user-data-when-using-discourse-as-identity-provider/297698
**Category:** SSO
**Tags:** discourseconnect
**Created:** [March 3, 2024, 1:25pm UTC](https://meta.discourse.org/t/getting-more-discourse-user-data-when-using-discourse-as-identity-provider/297698 "2024-03-03T13:25:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wilson29thid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson29thid/32/173700_2.png) [@wilson29thid](https://meta.discourse.org/u/wilson29thid)
#### Post date: [March 3, 2024, 1:25pm UTC](https://meta.discourse.org/t/getting-more-discourse-user-data-when-using-discourse-as-identity-provider/297698/1 "2024-03-03T13:25:38Z")

</div>

Hi folks, I’m using discourse as an identity provider to login to my application. Per [the docs](https://meta.discourse.org/t/use-discourse-as-an-identity-provider-sso-discourseconnect/32974), the result parameters include 8 bits of user dat (discourse user id, username, name, email, avatar\_url, admin, moderator, groups). I’d like to get the user’s timezone as well, since discourse already goes to the effort of guessing it and storing it. Is there any way to request that be included in the result parameters? (e.g. `?nonce=xyz&return_sso_url=xyz&include=timezone"` or something)

I believe [this method](https://github.com/discourse/discourse/blob/main/lib/discourse_connect_base.rb#L156-L167) is where the result parameters are constructed, but I can’t quite wrap my head around how those `ACCESSORS` are set in `self.parse` - my hunch is these are for when discourse is using an external identity provider, rather than this way around.

If not, I’ll fetch it from my application via an API request, but this approach feels a lot better, if it’s possible.
