# User defaults for different authentication sources

**URL:** <https://forum.gitea.com/t/user-defaults-for-different-authentication-sources/7708>\
**Category:** Install/Maintain/Configure\
**Created:** [August 11, 2023, 7:38am UTC](https://forum.gitea.com/t/user-defaults-for-different-authentication-sources/7708 "2023-08-11T07:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm565](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/jm565/32/4518_2.png) [@jm565](https://forum.gitea.com/u/jm565)\
**Post date:** [August 11, 2023, 7:38am UTC](https://forum.gitea.com/t/user-defaults-for-different-authentication-sources/7708/1 "2023-08-11T07:38:53Z")

</div>

Is it possible to somehow configure different default settings for users coming from different authentication sources?

My use case: I want to use Gitea in my organization. I have added an LDAP authentication source for internal users, that should be able to create organizations, repositories and so on. At the same time, I want to allow standard registrations for external users, which should only have access to repositories and organizations that they get invited to by internal users.

Currently, using

```auto
DEFAULT_USER_IS_RESTRICTED = true

```

makes external users restricted, but keeps LDAP users not restricted, which is good. Unfortunately, restricted users can still create repositories and organizations.  
Adding

```auto
DEFAULT_ALLOW_CREATE_ORGANIZATION = false

```

also removes this ability from all users, not only external ones.  
Furthermore, using

```auto
MAX_CREATION_LIMIT = 0

```

affects all users.

Basically, I am looking for a way to automatically handle restriction regarding repo and org creation between different user groups (internal and external). It is not really feasible to configure the default for one of the two groups and manually change the values for each new user of the other group.
