# `AshScim.User`
[🔗](https://github.com/ash-project/ash_scim/blob/main/lib/ash_scim/user.ex#L5)

Marks an Ash resource as a SCIM `User` resource per RFC 7643 §4.1.

Add to your user resource:

    defmodule MyApp.Accounts.User do
      use Ash.Resource,
        domain: MyApp.Accounts,
        extensions: [AshAuthentication, AshScim.User]

      scim do
        map :userName, attribute: :email
        map :active, attribute: :active

        complex :name do
          map :givenName, attribute: :first_name
          map :familyName, attribute: :last_name
        end

        multivalued :emails do
          map :value, attribute: :email
          map :primary, value: true
        end
      end

      # ... attributes, actions, etc.
    end

See `AshScim.Dsl.Map`, `AshScim.Dsl.Complex`, and `AshScim.Dsl.Multivalued`
for the per-entity options.

# `scim`
*macro* 

---

*Consult [api-reference.md](api-reference.md) for complete listing*
