Overview
User Management with OwnID
Managing user accounts is a fundamental aspect of any application, and OwnID provides a seamless way to integrate user management into your existing systems. The OwnID platform enables you to manage users without storing any user data within the OwnID infrastructure itself. Instead, OwnID acts as a connector, interfacing with your existing user database or repository.
How Users Are Managed
-
Identity Provider Integration: Every user account is stored as a record in your application’s identity provider, which can be considered an abstract database or repository. The identity provider is configured to connect to your existing users’ database or repository. OwnID does not store any user data; instead, it pulls and interacts with user information directly from your existing database.
-
Account Schema Definition: Before managing user accounts, you need to define an account schema using the Admin API. This schema outlines the structure of the account object, specifying the fields that make up a user account, including the validation rules for each field. The account schema ensures that all user data adheres to a consistent structure, making it easier to manage and validate user information.
-
User Account Operations: OwnID provides REST API endpoints that allow administrators to perform CRUD operations on user accounts:
- Create: Add new user accounts to the system based on the defined account schema.
- Get/Search: Retrieve user account details or perform searches on the user database to find accounts that match specific criteria. This enables administrators to locate users based on various attributes defined in the account schema.
- Update: Modify existing user accounts, ensuring that changes comply with the account schema.
- Delete: Remove user accounts from the system when necessary.
User Session Management with the OwnID JS SDK
For logged-in users, the OwnID JS SDK simplifies user session management. The get
and update
operations on user accounts can be performed directly within the context of the logged-in user’s session:
-
Get: Retrieve the logged-in user’s account information during an active session. This operation allows you to access current user data without needing separate API calls, as the SDK manages it seamlessly within the session.
-
Update: Update the logged-in user’s account details directly within their session. The SDK ensures that these updates are securely handled and automatically synchronized with the backend.
Was this page helpful?