Hi, could someone please share a sample code for processing individual groups that a user has in an infomap policy?
I am extracting them and displaying them for troubleshooting purposes and they are just coming as "appuser". However, on the cred viewer I can see that the user has the following groups:
[0] appadmin
[1] appuser
[2] otp_hrmis
My code snippet is as below:
var groups = context.get(scope, "urn:ibm:security:asf:request:token:attribute", "AZN_CRED_GROUPS");
If I display it as is I get "appuser". If I do a typeof on it I get "object". It's really getting confusing on how to process the groups to see if the user has a particular group or not.
Thanks,
------------------------------
Narayan
------------------------------