mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
Add ListUserPolicies to IAM API docs and CLI examples
+18
@@ -244,6 +244,24 @@ aws --endpoint $AWS_ENDPOINT iam put-user-policy \
|
||||
--policy-document file://readwrite-policy.json
|
||||
```
|
||||
|
||||
### List User Policies
|
||||
|
||||
List the names of inline policies attached to a user:
|
||||
|
||||
```bash
|
||||
aws --endpoint $AWS_ENDPOINT iam list-user-policies --user-name bob
|
||||
```
|
||||
|
||||
Output:
|
||||
```json
|
||||
{
|
||||
"PolicyNames": [
|
||||
"ReadOnlyPolicy"
|
||||
],
|
||||
"IsTruncated": false
|
||||
}
|
||||
```
|
||||
|
||||
### Get User Policy
|
||||
|
||||
```bash
|
||||
|
||||
@@ -63,6 +63,7 @@ weed iam -filer=localhost:8888 -port=8111
|
||||
| `PutUserPolicy` | Attach inline policy to user | Admin only |
|
||||
| `GetUserPolicy` | Get user's inline policy | Admin only |
|
||||
| `DeleteUserPolicy` | Remove user's inline policy | Admin only |
|
||||
| `ListUserPolicies` | List inline policy names for user | Admin only |
|
||||
| `CreatePolicy` | Create and store a managed policy | Admin only |
|
||||
| `DeletePolicy` | Delete a managed policy | Admin only |
|
||||
| `ListPolicies` | List managed policies | Admin only |
|
||||
|
||||
Reference in New Issue
Block a user