Check if role is Functional/Organizational

Hello community,

 

I am trying to get the organizational roles for a specific user. How to check if the role specified for that user is organizational? 

Like 0

Like

1 comments

You can check the SysAdminUnitTypeValue. 

  • Functional roles have a value of 6
  • Organizational units can have 0 (an organization) or 1 (a department/division in the organization)

If you need code to retrieve a user's roles they belong to, I have an article here with some code you can use https://customerfx.com/article/determining-if-a-user-has-a-specific-rol…

Ryan

Show all comments