SAML and dynamic contents based on user's department


(Dhien1844) #1

Hi everyone,

 

When we connect a website with SAML, we can only configure some certain attributes to be populated such as Email, First Name, Last Name, Last login.... Is there anyway we can query other attributes such as department, division.

 

And depend on the user's department, we will change the site's content accordingly.

 

Please advise.

 

Thanks

Hien


(Bart Banda) #2

Yea you can, but those attributes and info must be available from the SAML IDP, once that is passed to Matrix on the login, you should be able to access all of it using the globals session keywords and using the ^index modifier to extract any value that you need from the JSON structure. You can then pass that value into a metadata field or simply just conditionally print content based on the session value itself.