Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/santiagodc8/tu_perfil.net/llms.txt

Use this file to discover all available pages before exploring further.

The users section at /admin/usuarios lets you manage who can access the administration panel. You can create new accounts and change roles.
This page is only accessible to users with the admin role. Editors are redirected to the dashboard immediately.

User roles

RoleAccess
AdminFull access to all sections: articles, categories, tags, breaking news, comments, messages, advertising, statistics, subscribers, newsletter, and user management.
EditorCan create and edit articles, manage categories, tags, breaking news, view comments, messages, advertising, and statistics. Cannot access subscribers, newsletter sending, or user management.

Creating a new user

1

Click + Nuevo usuario

The invitation form expands at the top of the page.
2

Enter the user's full name

This is stored in the profiles.full_name column and displayed in the panel.
3

Enter the email address

This becomes the login email. It must be unique.
4

Set an initial password

Minimum 8 characters. Share this password with the new user securely. They can change it later from /admin/perfil.
5

Choose a role

Select Editor (recommended for journalists) or Admin (for trusted staff only).
6

Click Crear usuario

The API at POST /api/admin/usuarios/invitar creates a new Supabase Auth user and inserts a corresponding row into the profiles table with the chosen role. The new user appears in the list immediately.

Changing a user’s role

In the user list, each row has a role dropdown. Select Editor or Admin to change the role immediately — no save button is needed. The profiles table is updated via the Supabase client.

User list

Each user entry shows:
  • Full name
  • Role badge (Admin or Editor)
  • Email address
  • Registration date

Deleting a user

Deleting users is not available directly from the admin panel UI. To remove a user, go to your Supabase Dashboard → Authentication → Users, find the user, and delete them there. The associated profiles row will be deleted automatically by the ON DELETE CASCADE constraint.
Do not delete your own admin account unless you have another admin account available. Doing so will lock you out of the panel.

User fields reference

FieldTypeNotes
emailtextLogin email. Managed by Supabase Auth.
full_nametextDisplay name in the panel.
roleenumadmin or editor.
created_attimestampWhen the account was created.

Build docs developers (and LLMs) love