user_oidc
user_oidc copied to clipboard
Enable Group Provisioning through user_oidc:provider Options
The option to enable --groupProvider is missing from the other options to create a new provider instance when you list the help: occ user_oidc:provider --help
This is a severe limitation that greatly complicates the scripting/automation when creating the oidc provider instance.
The result is that it requires multiple steps:
- Provision the Provider instance:
occ user_oidc:provider [<identifier>] [options...]
- Get the ID number of the provider instance that matches the
name:
occ user_oidc:provider <instance_name>
- Enable groupProvisioning using:
occ config:app:set user_oidc --value=1 provider-<N>-groupProvisioning
Solution: Add the option to enable groupProvisioning at the time the provider is created so the groups can be enabled at the same time, and be enabled/disabled using the instance "Name" rather than the auto_increment ID number.
Relates to https://github.com/nextcloud/user_oidc/issues/791
Closing as a duplicate of #791.