Hi,
I am currently fetching users via API using admin/users/list/active.json
However, I would like to know if a particular user has DiscourseConnect info.
How would I approach that?
Hi,
I am currently fetching users via API using admin/users/list/active.json
However, I would like to know if a particular user has DiscourseConnect info.
How would I approach that?
If you’re using Discourse_connect then all users are using it, right? Or do you mean oauth?
There is an admin route (and maybe a user preferences) that shows the login info. If you can find it in the ux you can How to reverse engineer the Discourse API.
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
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.