# How to know if user has SSO

**URL:** <https://meta.discourse.org/t/how-to-know-if-user-has-sso/238926>\
**Category:** SSO\
**Tags:** rest-api\
**Created:** [September 13, 2022, 10:35pm UTC](https://meta.discourse.org/t/how-to-know-if-user-has-sso/238926 "2022-09-13T22:35:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tiagomatosweb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tiagomatosweb/32/273440_2.png) [@tiagomatosweb](https://meta.discourse.org/u/tiagomatosweb)\
**Post date:** [September 14, 2022, 6:50am UTC](https://meta.discourse.org/t/how-to-know-if-user-has-sso/238926/3 "2022-09-14T06:50:58Z")

</div>

Oh I was using the `/u/{username}.json` endpoint.  
But doing the reverse engineer I realised that the correct endpoint is `/admin/users/{id}.json`. This endpoint return a field called “single\_sign\_on\_record” which is what I was after.

Cheers, tks @pfaffman

---

_[View the full topic](https://meta.discourse.org/t/how-to-know-if-user-has-sso/238926)._
