/api/permisos/por-perfil/:idPerfil
Returns every row in the permisos_perfil table that belongs to the given profile. Unlike the My permissions endpoint, this returns the raw table rows (including id and idModulo) without joining module names. It is used by the admin UI to load the current state of the permissions matrix before editing.
Path parameters
ID of the profile whose permissions you want to retrieve.
Response
true when the query completes without error.Array of
permisos_perfil rows for the given profile. Returns an empty array when the profile has no assigned permissions.Error response
500
Examples
Success response
200