Description:
The roles of a logged in user from SSO are not updated if the user has a new idp role
Steps to reproduce:
- Configure a custom Oauth with
merge roles from SSO: true
- Sign in for the first time with user1
- Add on the idp, a role to the user1
- Reconnect with user1
Expected behavior:
The roles of the user must be updated at each connection
Actual behavior:
Only the roles of the first connection are taken into account
The groups are correctly seen in the debug logs but the user is not updated
The role already exists on rocketchet
Server Setup Information:
- Version of Rocket.Chat Server: 1.3.2
- Operating System: Linux
- Deployment Method: tar
- Number of Running Instances: 1
- NodeJS Version: v8.11.4
- MongoDB Version: 4.0.12