1 Answer
- Newest
- Most votes
- Most comments
1
Hello,
From Amplify/App sync perspective, there is no built-in way to retrieve the permissions of a user before hitting the App sync GraphQL endpoint.
One possible way I could think of is Cognito Pools would return groups of the User(in the JWT token) when a user logs in and you can get the groups and use it directly in your Front end code. This can be achieved like this: accessToken.payload['cognito:groups']
References
[+] https://github.com/aws-amplify/amplify-flutter/issues/413
[+] https://github.com/aws-amplify/amplify-android/issues/1655
I hope this answers your query.
Relevant content
- asked 4 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago