Forum Discussion

sachin's avatar
sachin
Mentor
10 years ago

Does role get overwritten or added if we pass them via SSO (cookie based)

Hi,

 

In OOB cookie based implementation we are passing parameter 

"roles.grant".  Does this parameter overwrite the existing roles or just add them.

 

Appreciate the help here.

 

Thanks,
Sachin

  • sachin - They should get added, unless the role names are same. I can say that because a user can have multiple roles, so overriding doesn't seem to be an issue.
    • sachin's avatar
      sachin
      Mentor

      @grazitti I am still not clear. What I meant was if we pass Roles A,B,C intially and later change that to Roles A,B, D will user still have role C. Meaning are roles getting added or overwritten.

       

      Thanks,
      Sachin

      • ChristineC's avatar
        ChristineC
        Khoros Alumni (Retired)

        Hi sachin , yes the user will retain the roles they currently have. To remove roles, you will have to use the "roles.remove" parameter