Files
zitadel/apps/docs/content/examples/imports/_serviceaccount_role.mdx
T
9b2507832a docs: update outdated screenshots (#11630)
# Which Problems Are Solved

Update outdated screenshots in the docs. 

# How the Problems Are Solved

By replacing the outdated ones with current screenshots

# Additional Changes
Replace the usage of "authorization" with "role assignments" in docs
where it was previously missed.

# Additional Context
- Follow-up for PR https://github.com/zitadel/zitadel/pull/11588
- there are some more docs to be updated, which will be done in a
following PR

---------

Co-authored-by: Copilot <[email protected]>
2026-02-20 12:33:49 +01:00

37 lines
1.4 KiB
Plaintext

In order to access this route, you must create the role `read:messages` in your ZITADEL project and also assign a role to the service account you created by adding the role to the user. Follow these steps to do so:
1. Go to your project and select **Roles**. Click **New**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/1.png)
2. Add the `read:messages` role as shown below and click **Save**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/2.png)
3. You will see the created role listed.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/3.png)
4. To assign this role to a user, click on **Role Assignments**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/4.png)
5. Select the user you want to assign the role to.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/5.png)
6. Select the project where this role assignment is applicable.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/6.png)
7. Click **Continue**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/7.png)
8. Select the role **read:messages** and click **Save**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/8.png)
9. You will now see the service account has been assigned the role **read:messages**.
![](../../../public/img/examples/secure-api/service-account-jwt/scopes/9.png)