Hi Everyone,
I am using the script a!groupsForUser(loggedInUser()) to get list of groups assigned to user but it gives the id along with group and I only want group name.
Can anyone please suggest?
Discussion posts and replies are publicly visible
Hello shubhamy0005,
Please try this code, it works!
a!forEach( items: a!groupsForUser(loggedInUser()), expression: group(fv!item,"groupName") )
Thanks Konduru, This expression gives insuffiicient permission error.
Hi shubhamy0005, Can you please share the error you are receiving.
If you have been in any particular group with the settings as deny you might be getting this error. Please check if this is the case. Not sure why it happens. Here I am assuming you are the application administrator.
You can try this.
getgroupnames( a!groupsForUser(loggedInUser()) )