Skip to content
Strobel Pierre edited this page Mar 20, 2026 · 2 revisions

PHPUnit Psalm Latest Release License: AGPL-3.0-or-later Nextcloud: 29-32 PHP: 8.1+

OIDC Groups Mapping

A Nextcloud app that maps multiple OIDC token claims to Nextcloud groups via configurable rules. Works with any identity provider through the user_oidc app.

The problem

With user_oidc alone, you can map one claim to groups (via the mappingGroups setting). But real-world identity providers often spread group-relevant information across multiple claims — roles, departments, organization, flags, etc.

The solution

This app lets you define rules that map any number of claims to Nextcloud groups:

Without this app With this app
1 claim → groups N claims → groups via configurable rules
roles["admin", "editor"] departmentEngineering
rolesrole_admin, role_editor
organizationStaff (via lookup table)
userType == INTERNALInternal-Users

Key features

  • Vue admin UI — visual rule editor with drag-and-drop reorder, raw JSON editor, and claim simulator
  • 5 rule typesdirect, prefix, map, conditional, template
  • Dot-notation claim paths — access any nested token field
  • Additive or replace mode — merge with or override existing groups
  • REST API — manage rules programmatically via OCS endpoints
  • OCC commands — list, set, and test rules from the CLI
  • Dark mode — full support for Nextcloud dark and light themes

Quick links

I want to... Go to
Install the app Installation
Set up my first rules Getting Started
Understand all rule types in detail Rule Types Reference
Manage rules via CLI OCC Commands
Automate rule management REST API
Configure modes and advanced options Configuration Reference
Fix something that isn't working Troubleshooting

Requirements

Component Version
Nextcloud 29 – 32
PHP 8.1+
user_oidc Installed and enabled

Clone this wiki locally