06-11-2019, 04:56 PM
Hi Jean,
"Users" are not allowed to add keys to tables. We will be improving our UAC so developers can customize what a user can do. If you are ok with your users having full access to your data model (delete project, delete tables, delete keys, add keys, etc) then you can call cdb_auth with "developer" instead of "user". pEmail and pPassword would be the email and password you use to login on LCM. If you don't want your users to have access to those APIs, then you can create a schemaless table. Users will be able to create records in a schemaless table with any key without having to add the key to the table.
Hope this helps!
"Users" are not allowed to add keys to tables. We will be improving our UAC so developers can customize what a user can do. If you are ok with your users having full access to your data model (delete project, delete tables, delete keys, add keys, etc) then you can call cdb_auth with "developer" instead of "user". pEmail and pPassword would be the email and password you use to login on LCM. If you don't want your users to have access to those APIs, then you can create a schemaless table. Users will be able to create records in a schemaless table with any key without having to add the key to the table.
Hope this helps!