Skip to content

Create user management API with Strapi#2

Draft
Albertico1995 wants to merge 1 commit intomainfrom
cursor/create-user-management-api-with-strapi-d043
Draft

Create user management API with Strapi#2
Albertico1995 wants to merge 1 commit intomainfrom
cursor/create-user-management-api-with-strapi-d043

Conversation

@Albertico1995
Copy link
Copy Markdown
Owner

Implement a Strapi API for company user management with role-based access control and a custom registration endpoint.

This PR establishes a Strapi v5 application with a worker content type, including fields like cargo and a relation to Strapi users. A custom policy (cargo-permissions) enforces granular access based on the worker's cargo: 'informático' (full control), 'jefe_rrhh' (CRUD), and 'otro' (read-only list). A bootstrap function configures initial permissions for the 'Authenticated' role, and a custom POST /api/workers/register endpoint allows for combined user and worker creation.


Open in Cursor Open in Web

@cursor
Copy link
Copy Markdown

cursor Bot commented Oct 20, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants