Skip to main content
1-Visitor
June 25, 2014
Question

Check if user is a member of a group

  • June 25, 2014
  • 1 reply
  • 2441 views

Is there a way to check if a user is in a particular group without using getmembers and iterating through the list?

    1 reply

    5-Regular Member
    June 25, 2014

    Hi David,

    User's have a

    GetGroups()

    Service which returns an InfoTable of Groups. You can wrap this Service to create your own

    IsMember()

    Service to query the InfoTable returned by

    GetGroups()

    and return a BOOLEAN value.


    Thanks,

    Adam