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.
endSee AshScim.Dsl.Map, AshScim.Dsl.Complex, and AshScim.Dsl.Multivalued
for the per-entity options.