Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No role assign to manual registered users despite of Default Roles for Users settings #27736

Closed
tidusete opened this issue Jan 12, 2023 · 1 comment · Fixed by #28293
Closed

Comments

@tidusete
Copy link

tidusete commented Jan 12, 2023

Description:

I have defined the guest role on Admin UI - Account - Registration - Default Roles for Users
image
But when I'm creating a user though the portal doing it manual filling the form, it sends the following json to the api.

{"roles":[],"name":"testuser","username":"testuser","statusText":"","bio":"","nickname":"","email":"<ommited>","password":"<ommited>","verified":false,"requirePasswordChange":false,"setRandomPassword":false,"sendWelcomeEmail":true,"joinDefaultChannels":true}

I know that I left empty the list_box where you can choose on which roles you want to add the user but that's because I want to use the default one defined on Admin UI - Account - Registration - Default Roles for Users
image

Steps to reproduce:

  1. Define your default roles on Admin UI - Account - Registration - Default Roles for Users
  2. Create a manual user through https://yourdomain/admin/users/new
  3. Check the role of the user created

Expected behavior:

I would like to have on my user the default role

Actual behavior:

It creates the user but doesn't have been assigned to any role.
image

Server Setup Information:

  • Version of Rocket.Chat Server: 5.2.0
  • Operating System: Ubuntu 20.04
  • Deployment Method: docker-compose
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: v14.19.3
  • MongoDB Version: 5.0.13

Client Setup Information

  • Desktop App or Browser Version: Firefox 108.0.2
  • Operating System: Ubuntu 22.04
@bhardwajdisha
Copy link
Contributor

hi @tidusete & @dudanogueira, I would like to work on this issue, can you please assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants