Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit a5da7f6

Browse files
committed
Add DescribeUserPool permission to Cognito adapter
1 parent 2fc9cb5 commit a5da7f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/sources/awscognitouserpool.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ arn:aws:cognito-idp:{awsRegion}:{awsAccountId}:userpool/{poolId}
2323
Alternatively you can also use the [AWS CLI][aws-cli]. The following command retrieves the ARN of a User Pool in the `us-west-2` region which has the pool id `us-west-2_fak3p001B`.
2424

2525
```console
26-
$ aws --region us-west-2 cognito-idp describe-user-pool --user-pool-id us-west-2_fak3p001B
26+
$ aws --region us-west-2 cognito-idp describe-user-pool --user-pool-id us-west-2_fak3p001B
2727
{
2828
"UserPool": {
2929
"Id": "us-west-2_fak3p001B",
@@ -49,7 +49,10 @@ As an example, the following policy contains the permissions required by the Tri
4949
{
5050
"Sid": "AWSCognitoUserPoolSourceReceiveAdapter",
5151
"Effect": "Allow",
52-
"Action": "cognito-idp:ListUsers",
52+
"Action": [
53+
"cognito-idp:DescribeUserPool",
54+
"cognito-idp:ListUsers"
55+
],
5356
"Resource": "arn:aws:cognito-idp:*:*:userpool/*"
5457
}
5558
]

0 commit comments

Comments
 (0)