I created an account in the sandbox and I tried to create a new “field officer” user role, but I’m currently getting a 403 on the ‘call’ api.
Sandbox: https://wildaidsandbox-mxgfy.mongodbstitch.com/
My admin user: joquendo
When I try to add a new user, the register API completes , but the call api Returns a 403 with the following response:
{
"error":"insert not permitted",
"error_code":"NoMatchingRuleFound",
"link":"https://realm.mongodb.com/groups/5f733d3366d46e349c2c49de/apps/5f735f71a3478af2476f85cf/logs?co_id=5f7cb685eeff56d1d2903d33"
}
Do I need to change some settings in order to create a new user?
I am attempting to create new users to look into Field officers should see all agency users on the users page (web) · Issue #168 · WildAid/o-fish-realm · GitHub
Payload:
{"name":"insertOne","service":"mongodb-atlas","arguments":[{"collection":"User","database":"wildaid","document":{"email":"lafieldofficer@lamda.com","name":{"first":"asdf","last":"lkj"},"active":true,"userGroup":"User Group","createdOn":{"$date":{"$numberLong":"1602007707341"}},"agency":{"name":"joquendo","admin":false},"global":{"admin":false},"_id":{"$oid":"5f7cb29bd86f74790d9a72d3"}}}]}
Thanks,
James