laceworksdk.api.v2.user_groups

Lacework UserGroups API wrapper (Experimental).

Module Contents

Classes

UserGroupsAPI

A class used to represent the User Groups API endpoint .

class laceworksdk.api.v2.user_groups.UserGroupsAPI(session)[source]

Bases: laceworksdk.api.base_endpoint.BaseEndpoint

A class used to represent the User Groups API endpoint .

A user group associates Lacework service and standard users with specific permissions in Lacework.

property session

Get the HttpSession instance the object is using.

add_users(guid, user_guids)[source]

A method to add users to existing UserGroup object.

Parameters:
  • guid (str) – The GUID of the UserGroup to modify

  • user_guids (list of str) – An array of user guids to add to the user group

Returns:

The modified results

Return type:

dict

remove_users(guid, user_guids)[source]

A method to remove users from an existing UserGroup object.

Parameters:
  • guid (str) – The GUID of the UserGroup object to modify.

  • user_guids (list of str) – An array of user guids to remove from the user group

Returns:

The modified results

Return type:

dict