Forums / Developer / How to fetch user groups?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to fetch user groups?

Author Message

Alessandro Ranellucci

Thursday 05 June 2003 10:34:52 am

I have a string. I want to compare it with the names of the groups the current user belongs to, but I just can't retrieve user groups.

{let thisuser=fetch('user','current_user')}
{let mygroup=fetch('content','object',hash(object_id, $thisuser.groups[0]))}

Why doesn't the above code work?