# SSO Login - set users to default role upon login

**URL:** <https://speciforum.org/t/sso-login-set-users-to-default-role-upon-login/2033>\
**Category:** Get Help\
**Created:** [October 18, 2024, 3:51am UTC](https://speciforum.org/t/sso-login-set-users-to-default-role-upon-login/2033 "2024-10-18T03:51:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitchenprinzessin](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kitchenprinzessin](https://speciforum.org/u/kitchenprinzessin)\
**Post date:** [October 18, 2024, 3:51am UTC](https://speciforum.org/t/sso-login-set-users-to-default-role-upon-login/2033/1 "2024-10-18T03:51:23Z")

</div>

Hi  
I have configured [Single Sign-On (SSO)](https://speciforum.org/t/single-sign-on-sso-support/537) for my system via Azure EntraID. At present, I need create an account for a user in advance Specify to associated the local account with SSO login.

Is there a way to set a user to a default role when they login via SSO?

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [October 21, 2024, 1:42pm UTC](https://speciforum.org/t/sso-login-set-users-to-default-role-upon-login/2033/2 "2024-10-21T13:42:33Z")

</div>

Hi @kitchenprinzessin,

User roles and permissions are not linked to the SSO system. Roles cannot be automatically assigned when a user logs in using a specific authentication method.

Are you looking for a way to automatically create a user and assign them a role when they log in to Specify via SSO for the first time? At present, there is no mechanism to do this and users must be created before an SSO invite link can be generated.

---

<div class="post-metadata">

**Author:** ![kitchenprinzessin](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kitchenprinzessin](https://speciforum.org/u/kitchenprinzessin)\
**Post date:** [October 22, 2024, 1:25am UTC](https://speciforum.org/t/sso-login-set-users-to-default-role-upon-login/2033/3 "2024-10-22T01:25:06Z")

</div>

"…automatically create a user " - yes, would it be possible to do it via API?
