Compare commits

...

2 Commits

Author SHA1 Message Date
dewi-tik
2ca4dff430 WIP 2025-09-26 17:32:52 +01:00
dewi-tik
acfd6f2b62 Initial work 2025-09-25 23:28:22 +01:00
3 changed files with 25 additions and 0 deletions

View File

@@ -79,3 +79,11 @@ To support the integration of authentik with Active Directory, you will need to
6. To finalise the Active Directory setup, you need to enable the backend "authentik LDAP" in the Password Stage.
![](./11_ak_stage.png)
## Property mapping
```python
return {
"type": "external".
}
```

View File

@@ -19,3 +19,19 @@ import Objects from "../../../expressions/\_objects.md";
import Functions from "../../../expressions/\_functions.mdx";
<Functions />
## Source property mapping examples
### Set a user's type
The following example is useful when users are being synced from a source such as LDAP and their authentik accounts need to be set as a certain type: external, internal, service account or internal service account.
To set users as external, create the following source property mapping and add it to the source's settings.
```python
return {
"type": "external".
}
```
###

View File

@@ -10,6 +10,7 @@ The User object has the following properties:
- `email`: User's email.
- `uid`: User's unique ID. Read-only.
- `name`: User's display name.
- `type`: User's account type; internal, external, service account or internal service account.
- `is_staff`: Boolean field defining if user is staff.
- `is_active`: Boolean field defining if user is active.
- `date_joined`: Date user joined/was created. Read-only.