Can't create groups with alanning roles

Roles.addUsersToRoles(userId, [‘view-secrets’], ‘’)

It just doesn’t work, i just crash my app every time i try to use the method Roles.addUsersToRoles and pass the name of the group as a parameter.

Are you using that on the client or on the server? What is the error message? If you’re using it on the server, check your log if it says something like this

Error: Roles error: Can't mix grouped and non-grouped roles for same user