## Request This is a request to process a list of SAML attributes to define the list of roles a user will have in Rocket.Chat. ## Problem Currently the saml server code hardcodes it to the `user` role: https://github.com/RocketChat/Rocket.Chat/blob/63a57fb7e5fedea0615f4d2b8f30c434b4df79ae/app/meteor-accounts-saml/server/saml_server.js#L178 ## Example This should set the roles `user` and `admin` to the user that is logging in (the attribute name is just a suggestion): ```xml <saml:Attribute Name="RocketGlobalRole" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">user</saml:AttributeValue> </saml:Attribute> <saml:Attribute Name="RocketGlobalRole" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">admin</saml:AttributeValue> </saml:Attribute> ``` ## Related: - https://github.com/RocketChat/Rocket.Chat/issues/9689 - https://github.com/RocketChat/Rocket.Chat/issues/12065 - https://github.com/RocketChat/Rocket.Chat/pull/14278
Activity