nocobase-app-plugin-users
यह क्या करती है
यह स्किल NocoBase Users plugin को ऐप में जोड़ती है और उसके API पर user management पेज बनाती है। यह उन एडमिन और डेवलपर्स के लिए है जो ऐप में खातों का प्रबंधन करते हैं।
कब इस्तेमाल करें
- ✓जब आप एडमिन पेज चाहते हों जहाँ user खाते बनाए, बंद या reset किए जा सकें।
- ✓जब कोई दूसरा plugin user management में अपने roles जोड़ना चाहे।
- ✓जब आपको users plugin की अनुमतियाँ कॉन्फ़िगर करनी हों।
Skill का लिंक
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-users/skills/nocobase-app-plugin-users/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे NocoBase ऐप में user management पेज जोड़ सकते हैं, जहाँ एडमिन लोगों को आमंत्रित कर सकें और खाते बंद कर सकें?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI plugin रजिस्टर करता है और उसके API पर पेज बनाता है, जो सूची देखने, बनाने, अपडेट करने, बंद करने और reset करने के actions देता है। खाते और sessions का डेटा authentication plugin के पास रहता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
User Management App Plugin
Use this Skill when an application needs user management, or when another plugin needs to expose application-specific roles in user management. Do not use it to modify the Users plugin source or to replace Authentication's user, account, or Session storage.
Public surfaces
- Client registration factory and
UsersClientOptions:@nocobase/app-plugin-users/client. It contributes only the public invitation page at/invite/:token; there is no user management page. - Typed API client:
UsersClientand its types from@nocobase/app-plugin-users/client/user-client. - Server contracts:
userManagementServiceToken,userRoleScopeRegistryToken,UserRoleScope, and related types from@nocobase/app-plugin-users/server/tokens. - HTTP API:
GET /api/users(page,pageSize,q,status,roleScope,role,sort=name,order=asc|desc; answers{ data, meta: { page, pageSize, total } }),GET /api/users/options,GET /api/users/:userId(latest managed profile and role scopes, requiresuser/read, 404 for absent accounts),POST /api/users,PATCH /api/users/:userId,DELETE /api/users/:userId?confirm=true,POST /api/users/:userId/disable|enable|resetPassword|revokeSessions, andPUT /api/users/:userId/roleScopes/:scope. The running application documents each one, with request and response schemas, at/api/swagger/docs(JSON at/api/swagger) under theUserstag. Failures use the standard error body; branch onerror.reason, such asUSER_NOT_FOUND,SELF_DELETE_NOT_ALLOWED,LAST_ASSIGNMENTorUSER_EMAIL_CONFLICT.
UsersClient.update(userId, { name?, username?, email?, roleScopes? }) supports one atomic editor Save. Profile fields require update; submitted roleScopes additionally require assign-role. A roles-only payload requires assign-role without update. The service validates scope values, runs each applicable target-account guard, and commits profile changes and all submitted scope replacements in the caller-owned transaction, notifying permission clients only after commit. Omitted scopes are preserved. Keep the existing per-scope PUT for callers needing only one scope. Do not implement a combined Save as sequential profile and role requests: a later failure would leave a partially saved account.
Every HTTP route requires Authentication and Authorization. Routes check the user record type with the applicable action from read, create, update, disable, enable, assign-role, reset-password, revoke-sessions or delete. Account creation checks both create and assign-role. delete is permitted only while an application role scope can clean a deleted user up.
Register the plugin
- Register Authentication, Authorization, and then Users in the App's Client
and Server plugin arrays. The Client factory takes no placement options:
users(). - Grant only the
useractions those roles need, on{ type: 'user', id: '*' }becauseuseris a record type. The plugin creates no roles and grants no access by itself. - For a user management page, build it in the App on
UsersClientand declare it among the App's own routes with the page access it needs; the plugin ships none.
The invitation page reports results through useToaster() from @nocobase/app-client, so the App needs the @nocobase/app-client that exports it and registers a toaster service, as the templates do: client/lib/toaster.ts from the template, and this.app.container.instance(toasterToken, createToaster()) in the register() of client/service-provider.ts, with the Toaster component mounted in client/react-providers.ts. Without the registration nothing throws, but its toasts are only logged to the browser console.
The default app permission-set scope is supplied by Users whenever the Authorization plugin's authorizationToken is available. Do not copy a user-roles Provider into an application. Set users.permissionSets: false to replace the default with an application-owned scope.
Add an application role scope
Resolve userRoleScopeRegistryToken in an application or business plugin
ServiceProvider and register one UserRoleScope during boot(). The scope owns
its available options, current assignment lookup, role filtering, atomic
replacement, and any disable guard. Unregister it during shutdown().
Use the DatabaseConnection passed to each scope method. This is the
caller-owned transaction used to keep account cr
अक्सर पूछे जाने वाले सवाल
क्या यह sign-in सिस्टम की जगह लेता है?
नहीं। खाते और sessions authentication plugin रखता है।
क्या इसमें डिफ़ॉल्ट रूप से एडमिन पेज है?
नहीं। plugin केवल एक सार्वजनिक invitation पेज जोड़ता है, इसलिए एडमिन पेज आपको खुद बनाना होगा।
क्या ऐप अपने roles जोड़ सकता है?
हाँ। यह role scope contract के ज़रिए होता है, जो ऐप या किसी दूसरे plugin से आता है।
जानकारी
लेखक का मूल विवरण
Integrate the Users plugin into a NocoBase App, build a user management page on its API and configure its permissions, or add an application-owned role scope through the public Server contracts.
repo: nocobase/nocobase
लोकप्रियता
- GitHub स्टार
- 25k
- रैंकिंग में स्थान
- #10107
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
nocobase-app-development
25kयह आपके एजेंट को पूर्ण NocoBase 3 व्यावसायिक एप्लिकेशन के लिए पेज, routes, डेटा, अनुमतियाँ और टेस्ट बनाने में मदद करती है।
shadcn
25kयह आपके एजेंट को वेब प्रोजेक्ट में shadcn/ui कंपोनेंट खोजने, जोड़ने, ठीक करने और स्टाइल करने में मदद करती है, उनके आधिकारिक दस्तावेज़ और registries का उपयोग करके।
nocobase-app-plugin-development
25kयह आपके एजेंट को मौजूदा NocoBase 3 ऐप के भीतर plugins बनाने और उनकी देखभाल करने में मदद करती है, जिसमें server, client, database और registration के हिस्से शामिल हैं।
nocobase-app-upgrade
25kयह आपके एजेंट को NocoBase ऐप को नए template रिलीज़ तक अपग्रेड करने में मदद करती है, template के बदलाव लाते हुए आपका अपना काम बनाए रखते हुए।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।