# Allow extra metadata from Single Sign On

**URL:** <https://meta.discourse.org/t/allow-extra-metadata-from-single-sign-on/17791>\
**Category:** Feature\
**Created:** [21 Julio, 2014 01:37 UTC](https://meta.discourse.org/t/allow-extra-metadata-from-single-sign-on/17791 "2014-07-21T01:37:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AdamCapriola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamcapriola/32/5192_2.png) [@AdamCapriola](https://meta.discourse.org/u/AdamCapriola)\
**Post date:** [21 Julio, 2014 23:16 UTC](https://meta.discourse.org/t/allow-extra-metadata-from-single-sign-on/17791/5 "2014-07-21T23:16:03Z")

</div>

> [@timoroso](#):
>
> Also, it would be nice to be able to set user groups on first login. What I do now is to set them via API in an SSO login script, but this only works for the users that already exist in Discourse, i.e. users that have already logged in at least once.

You can get around this by setting a delay on the API call (i.e. wait 20 seconds before syncing permissions). That ensures the user will have an account created before you try to map their groups.

---

_[View the full topic](https://meta.discourse.org/t/allow-extra-metadata-from-single-sign-on/17791)._
