How to create and use user_id #8357
Replies: 2 comments
-
To obtain a new user_id in RAGFlow, you typically go through the authentication flow using OAuth2 or OpenID Connect (OIDC). After authenticating with a third-party provider, you fetch user information (which includes identifiers like email and username) using the access token. This process is handled by the Auth module and the OAuthClient class, which manages authorization URLs, token exchanges, and user info retrieval see details. When creating a session via the HTTP API (for example, POST to In agent-related APIs, user_id is used to distinguish between different users' sessions. For example, when creating a session for an agent ( In summary: authenticate to get user info (and user_id), then use user_id in session and agent APIs to track and separate user-specific data and conversations. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Hi. @rrrrrrtrtt For basic programming or usage questions like this, we recommend using tools like GitHub Copilot or other LLM assistants — they’re great for helping with quick, straightforward queries. You’re also welcome to join our developer community where many friendly contributors are happy to help with technical debugging and advice. We generally use GitHub Discussions for more complex issues — such as product behavior, usage challenges, or feature requests. This helps keep the forum focused and useful for everyone. Thanks again for your understanding! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the HTTP API, there is a field named "user_id". How can I obtain a new user_id, and how is this user_id to be used in the agent-related APIs?
Beta Was this translation helpful? Give feedback.
All reactions