From eb89fc994d4ed3d361e8530b7f1d0219c7dc8b5e Mon Sep 17 00:00:00 2001
From: ldecarvalho-doc <82805470+ldecarvalho-doc@users.noreply.github.com>
Date: Mon, 23 Jun 2025 14:55:43 +0200
Subject: [PATCH 1/2] fix(iam): add policy list
---
pages/iam/how-to/view-permission-sets.mdx | 66 +++++++++++++++++++----
1 file changed, 55 insertions(+), 11 deletions(-)
diff --git a/pages/iam/how-to/view-permission-sets.mdx b/pages/iam/how-to/view-permission-sets.mdx
index 165c032d87..16c709c8f2 100644
--- a/pages/iam/how-to/view-permission-sets.mdx
+++ b/pages/iam/how-to/view-permission-sets.mdx
@@ -11,20 +11,64 @@ dates:
posted: 2024-12-03
---
-
+You can view the permission sets granted to API keys (via policies) through the Scaleway console, [the AP](https://www.scaleway.com/en/developers/api/iam/#path-permission-sets-list-permission-sets) and the Scaleway CLI.
-- A Scaleway account logged into the [console](https://console.scaleway.com)
-- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
+
+
+
+ - A Scaleway account logged into the [console](https://console.scaleway.com)
+ - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
-1. Click **IAM & API keys** on the top-right drop-down menu of the Scaleway console. The **Users** tab of the [Identity and Access Management dashboard](https://console.scaleway.com/iam/users) displays.
-
-2. Click the name of the user whose permissions you want to view. The user information page displays.
-
- To view your own permissions as a Member, you can follow the same process and click your name. If you cannot see your own permissions, contact an admin of the Organization, as you may not have the necessary permissions.
-
-3. Scroll to the **Permission sets** section.
+ 1. Click **IAM & API keys** on the top-right drop-down menu of the Scaleway console. The **Users** tab of the [Identity and Access Management dashboard](https://console.scaleway.com/iam/users) displays.
+
+ 2. Click the name of the user whose permissions you want to view. The user information page displays.
+
+ To view your own permissions as a Member, you can follow the same process and click your name. If you cannot see your own permissions, contact an admin of the Organization, as you may not have the necessary permissions.
+
+ 3. Scroll to the **Permission sets** section.
+
+ A list of your permission sets for the selected Organization displays. You can see the scope of the permissions, in which [IAM policy](/iam/concepts/#policy) they were defined, and to which [principal](/iam/concepts/#principal) they are attached to.
+
+
+
+ - A Scaleway account logged into the [console](https://console.scaleway.com)
+ - An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
+ - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
+ - An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
+ - A valid [API key](/iam/how-to/create-api-keys/)
+ - Installed and configured the [Scaleway CLI](https://github.com/scaleway/scaleway-cli) on your local machine
+
+ Run the following command in a terminal. Make sure you replace `` with the access key of the API key for which you wish to know the permission sets.
+
+ ```
+ scw iam api-key get
+ ```
+
+ You should get an output like the following:
+ ```
+ User Type:
+ member
+
+ Api Key:
+ AccessKey SCW13J04TP146R5FRANZ
+ UserID 17eacf3b-22ae-4d15-a21f-125f2d787146
+ Description -
+ CreatedAt 6 months ago
+ UpdatedAt 6 months ago
+ DefaultProjectID 210407a4-d22b-4382-a224-07a2fda2e14c
+ Editable true
+ Deletable true
+ Managed false
+ CreationIP 192.0.2.0
+
+ Policies:
+ Editors AllProductsFullAccess OrganizationReadOnly ProjectManager SupportTicketReadOnly
+ ```
+
+ You can see the list of permission sets for the policy attached to the access key.
+
+
-A list of your permission sets for the selected Organization displays. You can see the scope of the permissions, in which [IAM policy](/iam/concepts/#policy) they were defined, and to which [principal](/iam/concepts/#principal) they are attached to.
From cb8fc681f81f163f2a554b120ebab324020391c3 Mon Sep 17 00:00:00 2001
From: ldecarvalho-doc <82805470+ldecarvalho-doc@users.noreply.github.com>
Date: Mon, 23 Jun 2025 17:30:16 +0200
Subject: [PATCH 2/2] fix(iam): review bene
Co-authored-by: Benedikt Rollik
---
pages/iam/how-to/view-permission-sets.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/iam/how-to/view-permission-sets.mdx b/pages/iam/how-to/view-permission-sets.mdx
index 16c709c8f2..78e5bc0ba4 100644
--- a/pages/iam/how-to/view-permission-sets.mdx
+++ b/pages/iam/how-to/view-permission-sets.mdx
@@ -11,7 +11,7 @@ dates:
posted: 2024-12-03
---
-You can view the permission sets granted to API keys (via policies) through the Scaleway console, [the AP](https://www.scaleway.com/en/developers/api/iam/#path-permission-sets-list-permission-sets) and the Scaleway CLI.
+You can view the permission sets granted to API keys (via policies) through the Scaleway console, [the API](https://www.scaleway.com/en/developers/api/iam/#path-permission-sets-list-permission-sets), and the Scaleway CLI.