AWS DynamoDB Queries Not Showing user data unless with Admin privileges

0 votes
I'm currently not able to query DynamoDB as a generic user to obtain the user's own details. It's worth noting when given admin privileges the user can execute queries and the work as intended; so it's not a problem with the data but rather the privileges of users.

I believe the problem is arising due to the nature of "owner" property in graphQL and my means of authentication (which is email & password). I believe the "owner" property might only work with username & password but I cannot find any documentation to back this so it's a stab in the dark. Does anyone have any ideas as to why the user is unable to receive their own data?
Feb 23 in AWS by Rahul
• 2,080 points
92 views

1 answer to this question.

0 votes

Replace ownerfield "username" with "id"  

type user @model
@auth (rules: [
{allow: groups, groups: ["Admin"]}
{allow: owner, ownerField: "id", operations: [read]}
])
{ 
`id: ID!
email: String!
}

answered Feb 23 by Korak
• 5,820 points

Related Questions In AWS

+1 vote
10 answers
+3 votes
3 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

Not able to get_item from AWS dynamodb using python?

You are mixing resource and client objects ...READ MORE

answered Feb 24 in AWS by Korak
• 5,820 points
178 views
0 votes
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

You can't install the certificates created by ...READ MORE

answered Feb 21 in AWS by Korak
• 5,820 points
106 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP