Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

Using email as username with ACL

Hello

Code: Select all

  I need to set the ACL for user permissions. The problem is that I am using there email address as there username.  

 If I pass the e-mail address into acl I get an error 

api.appery.io/rest/1/db/collections/locBounce:1 POST https://api.appery.io/rest/1/db/colle... 400 (Bad Request)

But if I just pass a username it works. It seems like the @ symbol is causing the error. Is there a workaround for this?

Thank you

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Using email as username with ACL

Hello Vinny,

You shouldn't use username in the field "ACL", please use users' ids for that, e.g.:
pre{"56f6ee93e4b02044ef05e615":{"read":true,"write":true}}/pre

Return to “Issues”