# The WorkspacePermissionAssignmentOutput object

The output format for existing workspace PermissionAssignment records, which contains some info for
 user consumption.

## Attributes

- `principal` (object)
  Information about the principal assigned to the workspace.
  - `user_name` (string)
    The username of the user. Present only if the principal is a user.
  - `group_name` (string)
    The group name of the group. Present only if the principal is a group.
  - `service_principal_name` (string)
    The name of the service principal. Present only if the principal is a service principal.
  - `principal_id` (int64)
    The unique, opaque id of the principal.
  - `display_name` (string)
    The display name of the principal.
- `permissions` (array of string)
  The permissions level of the principal.
  Possible values:
  - `UNKNOWN`
  - `USER`
  - `ADMIN`
- `error` (string)
  Error response associated with a workspace permission assignment, if any.

## Example

```json
{
  "principal": {
    "user_name": "string",
    "group_name": "string",
    "service_principal_name": "string",
    "principal_id": 0,
    "display_name": "string"
  },
  "permissions": [
    "UNKNOWN"
  ],
  "error": "string"
}
```


