# rpc error: code = PermissionDenied desc = user 'alice' does not have permission to access resource 'admin-panel'

- **ID:** `go/grpc-permission-denied-rbac`
- **Domain:** go
- **Category:** auth_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The authenticated user lacks the required role or permissions for the requested operation.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.0 | active | — | — |
| 1.1 | active | — | — |

## Workarounds

1. **Grant the necessary permissions to the user in the authorization system.** (90% success)
   ```
   Update role-based access control (RBAC) policies to include the user for the admin-panel resource.
   ```
2. **Use a service account with appropriate permissions.** (85% success)
   ```
   conn, err := grpc.Dial("localhost:8080", grpc.WithInsecure(), grpc.WithPerRPCCredentials(&serviceAccountCreds{}))
   ```

## Dead Ends

- **Retry the request with the same credentials.** — The user's permissions haven't changed; retrying will still fail. (100% fail)
- **Use a different user's token without proper authorization.** — Using another user's token may be a security violation and may still lack permissions. (80% fail)
