QlikElixir.REST.Groups (qlik_elixir v0.3.5)
View SourceREST API client for Qlik Cloud Groups.
Provides functions to manage user groups for access control.
Examples
# List all groups
{:ok, %{"data" => groups}} = Groups.list(config: config)
# Get group details
{:ok, group} = Groups.get("group-123", config: config)
# Create a group
{:ok, group} = Groups.create(%{name: "Developers"}, config: config)
# Get group settings
{:ok, settings} = Groups.list_settings(config: config)
Summary
Functions
Creates a new group.
Deletes a group.
Gets a group by ID.
Lists all groups.
Gets group settings for the tenant.
Updates a group.
Updates group settings for the tenant.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Creates a new group.
Parameters
params- Map with group details::name- Required. Group name.
@spec delete( String.t(), keyword() ) :: :ok | {:error, QlikElixir.Error.t()}
Deletes a group.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Gets a group by ID.
@spec list(keyword()) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Lists all groups.
Options
:config- Required. The configuration struct.:limit- Maximum number of results per page.:next- Cursor for pagination.:name- Filter by group name.
@spec list_settings(keyword()) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Gets group settings for the tenant.
@spec update(String.t(), map(), keyword()) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Updates a group.
Parameters
group_id- The group ID.params- Map with fields to update.
@spec update_settings( map(), keyword() ) :: {:ok, map()} | {:error, QlikElixir.Error.t()}
Updates group settings for the tenant.
Parameters
params- Map with settings to update::autoCreateGroups- Whether to auto-create groups from IdP.:syncIdpGroups- Whether to sync groups from IdP.