Loading...

Staff sims_membership

Request Description

Takes a person_id and returns all HUB groups the member is a part of.


Request Information

Response Format:JSON
Requires Authentication:Yes
Cached:No
Cache Duration:N/A

Parameters

user_idPerson ID for the member of staff to check for

Example Request

$a = $api->sendRequest(
  array( 
      'controller'    => 'Staff',  
      'action'        => 'sims_membership',  
      'user_id'       => 'ID'
    )
  );

Example Result

Array
(
    [result] => Success
    [data] => Array
        (
            [0] => Array
                (
                    [GROUP] => Admin user
                )

            [1] => Array
                (
                    [GROUP] => Attendance Officer
                )

            [2] => Array
                (
                    [GROUP] => Bully Log
                )

            [3] => Array
                (
                    [GROUP] => Isolation user
                )

            [4] => Array
                (
                    [GROUP] => LT
                )

        )

)