You need to sign in to do that
Don't have an account?
AkiT
Query a list of subordinate (child) roles for user
Hi,
Anyone done this before, any tips?
I'd like to create a list of subordinate roles for a user that is running my s-control. This would be used to populate a selection list with all user's subordinates.
-Aki
Anyone done this before, any tips?
I'd like to create a list of subordinate roles for a user that is running my s-control. This would be used to populate a selection list with all user's subordinates.
-Aki
It depends on how far you want to go wtih the "subordinates".
If you are going one level deep.. you can retrieve them with
If you need to go deeper, you're going to have to write some code to iterate over the result set that would take the "u.UserRoleId" field and re-run the query above with the {!$User.UserRoleId} replaced with your "UserRoleId" field from the result set.