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