Permission Details

View Users

Users View
Edit
Description

Can view user profiles

Permission Details
Resource

Users

System resource being protected
Action

View

Operation that can be performed
Internal Name

users.view

Used in code and API

Assigned to Roles (3)

100
Super Administrator
Level 100 access
Granted Sep 27, 2025
80
Administrator
Level 80 access
Granted Sep 27, 2025
10
Viewer
Level 10 access
Granted Sep 27, 2025

Usage in Code

Check Permission in Controller
// Check if current user has this permission
if (!$this->hasPermission('users', 'view')) {
    return $this->respond(['error' => 'Access denied'], 403);
}
Check Permission in View
<?php if (hasPermission('users', 'view')): ?>
    <button class="btn btn-primary">View</button>
<?php endif; ?>
API Endpoint Protection
// In routes or middleware
$routes->post('users', 'Controller::view', [
    'permission' => 'users.view'
]);

Permission Summary

Internal Name:
users.view
Display Name:
View Users
Resource:
Users
Action:
View
Created:
Sep 27, 2025 12:47 AM
Last Updated:
Sep 27, 2025 12:47 AM

Assignment Statistics

Assigned Roles: 3
Total Users: 0
Status: In Use

Quick Actions

Edit Permission