Skip to content

Group name rewrite based on Provider (for Wiki.js) #12232

Answered by zaourzag
akowi-sknobloch asked this question in Q&A
Discussion options

You must be logged in to vote

hi! i was cruising trough here and saw your question. this is posible in authentik using a custom scope.

ie:

return {
    # Because authentik only saves the user's full name, and has no concept of first and last names,
    # the full name is used as given name.
    # You can override this behaviour in custom mappings, i.e. `request.user.name.split(" ")`
    "name": request.user.name,
    "given_name": request.user.name,
    "preferred_username": request.user.username,
    "nickname": request.user.username,
    # groups is not part of the official userinfo schema, but is a quasi-standard
    "groups": ["Administrators"] + [group.name for group in request.user.ak_groups.all()] if ak_is_grou…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akowi-sknobloch
Comment options

Answer selected by akowi-sknobloch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants