2016-05-12 14:08:15 +01:00
|
|
|
# odps auth
|
2016-05-12 14:05:53 +01:00
|
|
|
|
2016-05-16 02:43:04 +01:00
|
|
|
> User authorities in ODPS (Open Data Processing Service).
|
2021-06-09 07:12:11 +01:00
|
|
|
> See also `odps`.
|
|
|
|
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
|
2016-05-12 14:05:53 +01:00
|
|
|
|
2016-05-15 11:45:33 +01:00
|
|
|
- Add a user to the current project:
|
2016-05-12 14:05:53 +01:00
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`add user {{username}};`
|
2016-05-12 14:05:53 +01:00
|
|
|
|
|
|
|
- Grant a set of authorities to a user:
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`grant {{action_list}} on {{object_type}} {{object_name}} to user {{username}};`
|
2016-05-12 14:05:53 +01:00
|
|
|
|
2016-05-16 08:17:01 +01:00
|
|
|
- Show authorities of a user:
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`show grants for {{username}};`
|
2016-05-16 08:17:01 +01:00
|
|
|
|
2016-05-14 04:20:48 +01:00
|
|
|
- Create a user role:
|
2016-05-12 14:05:53 +01:00
|
|
|
|
|
|
|
`create role {{role_name}};`
|
|
|
|
|
2016-05-16 08:17:01 +01:00
|
|
|
- Grant a set of authorities to a role:
|
|
|
|
|
|
|
|
`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`
|
|
|
|
|
2016-05-16 02:43:04 +01:00
|
|
|
- Describe authorities of a role:
|
|
|
|
|
|
|
|
`desc role {{role_name}};`
|
|
|
|
|
2016-05-15 03:56:50 +01:00
|
|
|
- Grant a role to a user:
|
2016-05-12 14:05:53 +01:00
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`grant {{role_name}} to {{username}};`
|