권한
각 사용자는 여러 권한을 가질 수 있습니다. 프로필에서 사용자의 권한을 볼 수 있습니다.

권한 속성
권한에는 다음과 같은 속성이 있습니다:
소유자이름생성시간표시이름활성화됨모델Users: An array of users belonging to this permissionRoles: An array of roles belonging to this permission리소스타입Resources: 리소스의 배열Actions: 액션의 배열효과
Managing Permissions via API
Permissions are managed as separate resources in Casdoor. When you retrieve a user object, the Permissions field is populated dynamically by extending the user data with information from the Permissions resource.
To assign or update permissions for users, use the Permissions API endpoints rather than the User API. You can manage permissions through:
- Web UI: Navigate to the Permissions management page (e.g.,
https://door.casdoor.com/permissions) - API: Use the permission-specific endpoints documented in the Casdoor API reference
The Permission resource allows you to define permissions with specific users and roles assigned to them. When a user is added to a permission's Users array or belongs to a role in the permission's Roles array, that permission will automatically appear in the user's Permissions field when retrieving user data.