Page 1 of 1

Using email as username with ACL

Posted: Sat Mar 26, 2016 5:43 pm
by Vinny B

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


Using email as username with ACL

Posted: Sat Mar 26, 2016 8:20 pm
by Serhii Kulibaba

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