# Cliient.sync\_sso calls a missing route

**URL:** https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209
**Category:** Bug
**Created:** [November 21, 2016, 7:02pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209 "2016-11-21T19:02:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 21, 2016, 7:02pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/1 "2016-11-21T19:02:08Z")

</div>

Continuing the discussion from [What exactly does "client.sync\_sso" do? (Discourse Ruby API)](https://meta.discourse.org/t/what-exactly-does-client-sync-sso-do-discourse-ruby-api/40612):

> <https://github.com/discourse/discourse_api/blob/main/lib/discourse_api/api/users.rb#L13-L16>

Calls `/admin/users/USERNAME`, which doesn’t seem to exist. That’s a bug, right? It looks like that route requires the `user_id` to be included before `username`.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 21, 2016, 8:48pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/2 "2016-11-21T20:48:54Z")

</div>

Is this correct @sam?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 21, 2016, 10:03pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/3 "2016-11-21T22:03:51Z")

</div>

Yeah looks buggy probably created prior to us refactoring admin routes

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 21, 2016, 10:13pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/4 "2016-11-21T22:13:55Z")

</div>

> [@sam](#):
>
> looks buggy

Show me the love! At this rate, I’m never going to get my Tester badge. 🙂 (This is my [second confirmed bug](https://meta.discourse.org/t/upgrade-link-missing/52882/8) that didn’t get liked. 😢)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 23, 2017, 8:31am UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/5 "2017-06-23T08:31:49Z")

</div>

Can we fix this @blake – looks easy?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [June 23, 2017, 5:26pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/7 "2017-06-23T17:26:28Z")

</div>

Okay fixed!

[https://github.com/discourse/discourse\_api/commit/c82519ffb398c56e14f9331a6b550dad4bcb6f20](https://github.com/discourse/discourse_api/commit/c82519ffb398c56e14f9331a6b550dad4bcb6f20)

Install the latest version of the gem ([0.16.1](https://github.com/discourse/discourse_api/commit/61b6240c6f06c68015ad98b80fc827fe05ce3e35)) and you will get the update.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [June 23, 2017, 5:26pm UTC](https://meta.discourse.org/t/cliient-sync-sso-calls-a-missing-route/53209/8 "2017-06-23T17:26:46Z")

</div>


