ACL - assign to a given user or group

Use this command to assign ACL to a given user or group.

Format:


(resouce object).acl[<user or group object>] = <permission>

or


(resouce object).acl["thename?user|group"] = <permission>
Note: Use the "?user|group" syntax when the user does not have the right to get the user or group object

Example:


>>> admin.clouds[0].acl[admin.users[1]] = admin.READ_PERMISSION

or


>>> admin.clouds[0].acl["admin?user"] = admin.READ_PERMISSION
Note: Valid permissions are: admin.READ_PERMISSION, admin.UPDATE_PERMISSION, admin.CREATE_PERMISSION, admin.DELETE_PERMISSION