Files
tldr/pages.zh/common/odps-auth.md

33 lines
698 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# odps 权限
> ODPS开放数据处理服务中的用户权限。
> 另见 `odps`。
> 更多信息:<https://www.alibabacloud.com/help/doc-detail/27971.htm>。
- 将用户添加到当前项目:
`add user {{username}};`
- 授予用户一组权限:
`grant {{action_list}} on {{object_type}} {{object_name}} to user {{username}};`
- 显示用户的权限:
`show grants for {{username}};`
- 创建用户角色:
`create role {{role_name}};`
- 授予角色一组权限:
`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`
- 描述角色的权限:
`desc role {{role_name}};`
- 将角色授予用户:
`grant {{role_name}} to {{username}};`