Operations on the authenticated user's own resource (/Me endpoint).
Examples
iex> client = ExScimClient.Client.new("https://example.com/scim/v2", "token")
iex> {:ok, _me} = ExScimClient.Me.get(client)
Summary
Functions
Retrieves the authenticated user's resource.
Partially updates the authenticated user's resource using patch operations.
Updates the authenticated user's resource by replacing all attributes.
Functions
@spec get( ExScimClient.Client.t(), keyword() ) :: {:ok, map()} | {:error, term()}
Retrieves the authenticated user's resource.
Parameters
client-ExScimClient.Clientstructopts- Options keyword list:attributes- List of attributes to include:excluded_attributes- List of attributes to exclude
Examples
iex> client = ExScimClient.Client.new("https://example.com/scim/v2", "token")
iex> {:ok, _me} = ExScimClient.Me.get(client)
iex> {:ok, _me} = ExScimClient.Me.get(client, attributes: ["userName", "displayName"])
@spec patch(ExScimClient.Client.t(), list()) :: {:ok, map()} | {:error, term()}
Partially updates the authenticated user's resource using patch operations.
Parameters
client-ExScimClient.Clientstructoperations- List of patch operations
Examples
iex> client = ExScimClient.Client.new("https://example.com/scim/v2", "token")
iex> operations = [%{"op" => "replace", "path" => "displayName", "value" => "New Name"}]
iex> {:ok, _response} = ExScimClient.Me.patch(client, operations)
@spec update(ExScimClient.Client.t(), map()) :: {:ok, map()} | {:error, term()}
Updates the authenticated user's resource by replacing all attributes.
Parameters
client-ExScimClient.Clientstructuser_data- Map containing updated user attributes
Examples
iex> client = ExScimClient.Client.new("https://example.com/scim/v2", "token")
iex> user_data = %{displayName: "Updated Name"}
iex> {:ok, _response} = ExScimClient.Me.update(client, user_data)