> For the complete documentation index, see [llms.txt](https://docs.g-iot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.g-iot.io/platform-user-guide-book/administration/user/switch-role-to-a-user.md).

# Switch Role to a User

Only one role can be assigned per user.  SuperAdmins or Users with the appropriate permissions can switch a user’s role by revoking the previous one and assigning a new role. Each role defines the specific actions a user is authorized to perform within the platform.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeF5z7zOaiUeHfQwcNQL6nrxgEvmw-Z6WkQD4FWL_N95v58_XgmxhdvABDXmiYBbOZYJCC3bDmor-rBRplYquz5Ua_amMSsPPauNgdizrHWy8hDyXMeZXMJFvvL9ANwHDbiFVANXw?key=ZzE-SQBxhtpTethCCNB9a49Q" alt=""><figcaption><p>Assign Role to a User</p></figcaption></figure>

1. **Access the User Management Page:**\
   From the **Cockpit**, navigate to **Administration** and click on **Users**.
2. **Edit the User:**\
   Locate the desired user, click on the **⋮ (ellipse)** icon, and select **Edit**.
3. **Add New Roles:**\
   Click on the **add icon** for new roles.
4. **Select Roles:**\
   Choose the roles from the dropdown menu.
5. **Confirm Role Assignment:**\
   Click **Assign** to save the changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.g-iot.io/platform-user-guide-book/administration/user/switch-role-to-a-user.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.
