Skip to content

The option "Default Roles for Authentication Services" when register new users via auth service has no effect #9689

Closed

Description

@ruKurz

Description:

The option "Default Roles for Authentication Services" when register new users via auth service has no effect

Server Setup Information:

  • Version of Rocket.Chat Server: 0.59.3 (as well 0.61)
  • Operating System: Linux
  • Deployment Method(snap/docker/tar/etc): tar
  • Number of Running Instances: 2
  • DB Replicaset Oplog: yes
  • Node Version: 4.7.3 - x64 (as well 8.9.4 - x64)

Steps to Reproduce:

  1. Activate "Registration via authentication service"
  2. Set the option "Default Roles for Authentication Services"
    (Accounts_Registration_AuthenticationServices_Default_Roles) to guest
  3. Sign On/In a new user using a auth service like SAML

Expected behavior:

The newly created user should have the role guest

Actual behavior:

The newly created user has the role user instead of guest

Note: If fixing this issue it should be prevented to create users of the role admin

Activity

  1. added a commit that references this issue on Feb 13, 2018
  2. janrudolph commented on Feb 13, 2018

    @janrudolph

    Addition: We noticed the same effect with every other defined role. If you define bot or admin as default, the user gets the role user. Moreover, a list of roles does not have an effect neither. If you set the default to user, bot, the user gets the role user.

  3. lkraider commented on Aug 22, 2019

    @lkraider

    The role is hardcoded in the source file:

  4. pierre-lehnen-rc commented on May 29, 2020

    @pierre-lehnen-rc
    Contributor

    Fixed on #15277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions