閱讀442 返回首頁    go windows


添加角色並通過ACL授權__快速開始_安全指南_大數據計算服務-阿裏雲

場景描述:Jack是項目空間prj1的管理員,有三個新加入的項目組成員:Alice, Bob, Charlie,他們的角色是數據審查員。 他們要申請如下權限:查看Table列表,提交作業,讀取表userprofile。

對於這個場景的授權,項目空間管理員可以使用基於對象的 ACL授權 機製來完成。

操作方法:

    use prj1;
    add user aliyun$alice@aliyun.com; --添加用戶
    add user aliyun$bob@aliyun.com;
    add user aliyun$charlie@aliyun.com;
    create role tableviewer; --創建角色
    grant List, CreateInstance on project prj1 to role tableviewer; --對角色賦權
    grant Describe, Select on table userprofile to role tableviewer;
    grant tableviewer to aliyun$alice@aliyun.com; --對用戶賦予角色tableviewer
    grant tableviewer to aliyun$bob@aliyun.com;
    grant tableviewer to aliyun$charlie@aliyun.com;

最後更新:2016-05-06 10:43:14

  上一篇:go 添加用戶並授權__快速開始_安全指南_大數據計算服務-阿裏雲
  下一篇:go 設置項目保護模式__快速開始_安全指南_大數據計算服務-阿裏雲