View Source WorkOS.DirectorySync (WorkOS SDK for Elixir v1.1.0)

Manage Directory Sync in WorkOS.

@see https://workos.com/docs/reference/directory-sync

Summary

Functions

Link to this function

delete_directory(client \\ WorkOS.client(), directory_id)

View Source
@spec delete_directory(WorkOS.Client.t(), String.t()) :: WorkOS.Client.response(nil)

Deletes a directory.

Link to this function

get_directory(client \\ WorkOS.client(), directory_id)

View Source

Gets a directory given an ID.

Link to this function

get_group(client \\ WorkOS.client(), directory_group_id)

View Source

Gets a directory group given an ID.

Link to this function

get_user(client \\ WorkOS.client(), directory_user_id)

View Source

Gets a directory user given an ID.

Link to this function

list_directories(opts \\ %{})

View Source
Link to this function

list_directories(client, opts)

View Source

Lists all directories.

Parameter options:

  • :domain - The domain of a Directory.
  • :organization_id - Filter Directories by their associated organization.
  • :search - Searchable text to match against Directory names.
  • :limit - Maximum number of records to return. Accepts values between 1 and 100. Default is 10.
  • :before - An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
  • :after - Pagination cursor to receive records after a provided event ID.
  • :order - Order the results by the creation time. Supported values are "asc" and "desc" for showing older and newer records first respectively.
Link to this function

list_groups(opts \\ %{})

View Source
@spec list_groups(map()) ::
  WorkOS.Client.response(
    WorkOS.List.t(WorkOS.DirectorySync.Directory.Group.t())
  )
Link to this function

list_groups(client, opts)

View Source
@spec list_groups(WorkOS.Client.t(), map()) ::
  WorkOS.Client.response(
    WorkOS.List.t(WorkOS.DirectorySync.Directory.Group.t())
  )

Lists all directory groups.

Parameter options:

  • :directory - Unique identifier of the WorkOS Directory.
  • :user - Unique identifier of the WorkOS Directory User.
  • :limit - Maximum number of records to return. Accepts values between 1 and 100. Default is 10.
  • :before - An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
  • :after - Pagination cursor to receive records after a provided event ID.
  • :order - Order the results by the creation time. Supported values are "asc" and "desc" for showing older and newer records first respectively.
Link to this function

list_users(client, opts)

View Source

Lists all directory users.

Parameter options:

  • :directory - Unique identifier of the WorkOS Directory.
  • :group - Unique identifier of the WorkOS Directory Group.
  • :limit - Maximum number of records to return. Accepts values between 1 and 100. Default is 10.
  • :before - An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
  • :after - Pagination cursor to receive records after a provided event ID.
  • :order - Order the results by the creation time. Supported values are "asc" and "desc" for showing older and newer records first respectively.