# Permission

![](https://2399483792-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5wUZvs6DWnie-x7ZVc%2F-M60DKQ47PxUexycYMYF%2F-M60Efszdci-gTVdwUjL%2Fuperms.png?alt=media\&token=43f0a8df-d698-401c-aa02-791438590944)

```lua
local rank = Wosa.User.Permission.Get(
    user --[[ int ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.

Description:
Get the current permission level aka rank of the user.

]]
```

```lua
Wosa.User.Permission.Set(
    user, --[[ int ]]
    rank --[[ string ]]
)

--[[

Parameters:
-> user: The PlayerID of the user.
-> rank: The rank you want the user to get.

Description:
Give/change a users permission level within the framework. This WILL cause some
serious issues if you do not set a "valid" rank from the rank config.

]]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wosa.gitbook.io/working-with-wosa/functions/server/user/permission.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
