Unable to pass logged in user role as a parameter in the vbcs url in Oracle sales cloud
We have a requirement where we need to check if the logged in user is an admin or not. Hence we tried to pass the logged in userrole parameter in the url of the tile in the sales tab in home page. This is not working for us, However we are able to pass the logged in user name in the url by adding the below at the end of the url:
username=#{securityContext.userName}
The above parameter is working as expected. But the userrole parameter is not working when we tried as below:
1) userrole=#{securityContext.userRole}
2) userid=#{securityContext.userID}