Skip to content

Commit eb89fc9

Browse files
fix(iam): add policy list
1 parent 6319f95 commit eb89fc9

File tree

1 file changed

+55
-11
lines changed

1 file changed

+55
-11
lines changed

pages/iam/how-to/view-permission-sets.mdx

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,64 @@ dates:
1111
posted: 2024-12-03
1212
---
1313

14-
<Macro id="requirements" />
14+
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.
1515

16-
- A Scaleway account logged into the [console](https://console.scaleway.com)
17-
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
16+
<Tabs id="viewpermissionsets">
17+
<TabsTab label="Via the console">
18+
<Macro id="requirements" />
19+
- A Scaleway account logged into the [console](https://console.scaleway.com)
20+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
1821

19-
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.
20-
<Lightbox src="scaleway-iam-users-dashboard.webp" alt="" />
21-
2. Click the name of the user whose permissions you want to view. The user information page displays.
22-
<Message type="tip">
23-
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.
24-
</Message>
25-
3. Scroll to the **Permission sets** section.
22+
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.
23+
<Lightbox src="scaleway-iam-users-dashboard.webp" alt="" />
24+
2. Click the name of the user whose permissions you want to view. The user information page displays.
25+
<Message type="tip">
26+
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.
27+
</Message>
28+
3. Scroll to the **Permission sets** section.
29+
30+
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.
31+
</TabsTab>
32+
<TabsTab label="Via the SCW CLI">
33+
<Macro id="requirements" />
34+
- A Scaleway account logged into the [console](https://console.scaleway.com)
35+
- An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
36+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
37+
- An [SSH key](/organizations-and-projects/how-to/create-ssh-key/)
38+
- A valid [API key](/iam/how-to/create-api-keys/)
39+
- Installed and configured the [Scaleway CLI](https://github.com/scaleway/scaleway-cli) on your local machine
40+
41+
Run the following command in a terminal. Make sure you replace `<access_key>` with the access key of the API key for which you wish to know the permission sets.
42+
43+
```
44+
scw iam api-key get <access_key>
45+
```
46+
47+
You should get an output like the following:
48+
```
49+
User Type:
50+
member
51+
52+
Api Key:
53+
AccessKey SCW13J04TP146R5FRANZ
54+
UserID 17eacf3b-22ae-4d15-a21f-125f2d787146
55+
Description -
56+
CreatedAt 6 months ago
57+
UpdatedAt 6 months ago
58+
DefaultProjectID 210407a4-d22b-4382-a224-07a2fda2e14c
59+
Editable true
60+
Deletable true
61+
Managed false
62+
CreationIP 192.0.2.0
63+
64+
Policies:
65+
Editors AllProductsFullAccess OrganizationReadOnly ProjectManager SupportTicketReadOnly
66+
```
67+
68+
You can see the list of permission sets for the policy attached to the access key.
69+
</TabsTab>
70+
</Tabs>
2671

27-
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.
2872

2973

3074

0 commit comments

Comments
 (0)