goauthentik / goauthentik/authentik

Preserve AD Structure when syncing to authentik

Open
#6,138 1 comment 1 reaction 0 assignees View on GitHub
enhancement enhancement/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

### Discussed in https://github.com/goauthentik/authentik/discussions/6134

Originally posted by **blackphantom39** July 4, 2023
Hello,

I am trying to find a way to preserve user paths when using an AD via a LDAP Source. I successfully got users to sync from AD to authentik. That part is working fine.
But all users are placed into a single folder on the authentik side. I have seen that there is a `User Path` option within the LDAP Source settings. However, I cannot figure out how to modify this for what I am trying to achieve.

Is there a way to preserve the following example AD structure when syncing to authentik?

```
AD/
├─ Department A (OU)
│ ├─ User 01
│ └─ ...
├─ Department B (OU)
│ ├─ User 01
│ └─ ...
└─ Department C (OU)
├─ User 01
└─ ...

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.