user_oidc icon indicating copy to clipboard operation
user_oidc copied to clipboard

Enable Group Provisioning through user_oidc:provider Options

Open dcrosby opened this issue 1 year ago • 1 comments

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:

  1. Provision the Provider instance:
occ user_oidc:provider [<identifier>] [options...]
  1. Get the ID number of the provider instance that matches the name:
occ user_oidc:provider <instance_name>
  1. 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.

dcrosby avatar Feb 15 '24 20:02 dcrosby

Relates to https://github.com/nextcloud/user_oidc/issues/791

col-panic avatar Feb 21 '24 11:02 col-panic

Closing as a duplicate of #791.

edward-ly avatar Oct 03 '24 21:10 edward-ly