Please share any images or screenshots, if relevant.
[Please insert images here, otherwise delete this section]
Please share any other relevant files that may be required (for example, logs).
[Please insert files here, otherwise delete this section]
Share all details about your problem, including any error messages you may have received.
[I have a requirement to write a custom report that should have username, user’s assigned roles, It roles that are assigned to user,IT Business Mapping(if user has only Business Role return 0 if user has both business role and IT roles corresponding to business role return 1, If business role have multiple IT role assigned to user should also return 1)
Issues 1. For the Business Role column, I’m currently retrieving values from Bundle.displayName, but this includes all roles, including IT roles. I only need Business Roles. I tried writing a script to fetch Business Roles using identity.getAssignedRoles(), but it throws an exception saying that the getAssignedRoles() method is not available in the Identity class.
Issue 2. I can’t find all assigned IT roles to user’s profile.