Replies: 1 comment 4 replies
-
|
Yes, agent applications in Dify can retrieve the sys.user_id variable. sys.user_id is a built-in system variable that uniquely identifies the current user and is always present in the workflow or chatflow context. You can reference it in workflow nodes, code nodes, templates (like If you are embedding an agent application via iframe, you need to GZIP-compress, Base64-encode, and URI-encode the user ID, then pass it as a For more details and code examples on passing sys.user_id via iframe, see this issue. For plugin and workflow access, see this discussion and this workflow variable guide. If you need to use sys.user_id inside a workflow or plugin, just reference it as To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Can the agent application obtain the variable information of sys.user_id?

2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions