nextcloud / nextcloud/user_oidc
Unrelated admin group is created instead of adding user to the nextcloud administrators group
Open
Nobody has claimed this yet.
bug
documentation
priority: normal
- Dominant language
- PHP
- Stars
- 181
- Forks
- 60
- Avg merge
- 7h 34m
- Merged PRs (30d)
- 26
Description
I am currently using Authentik with the OIDC provider backend. I already tried to pass groups as the simple array:
["admin"]
and using the object:
[{"gid": "admin", "displayName": "admin"}]
The payload that sent is:
{
"name": "some user name",
"groups": [
{
"displayName": "admin",
"gid": "admin"
}
],
"quota": "200 GB",
"user_id": "some user id"
}
My OIDC is configured as follows:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the OIDC login with the provided groups payload and configuration, then trace how the gid and displayName values are mapped to Nextcloud groups. Done means the existing Nextcloud administrators group is used instead of creating an unrelated admin group, with the behavior covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100