2016-05-12 21:08:15 +08:00
|
|
|
# odps auth
|
2016-05-12 21:05:53 +08:00
|
|
|
|
2016-05-12 21:20:57 +08:00
|
|
|
> Manage authorities in ODPS (Open Data Processing Service).
|
2016-05-12 21:05:53 +08:00
|
|
|
|
|
|
|
- Show authorities of a user:
|
|
|
|
|
2016-05-12 21:19:55 +08:00
|
|
|
`show grants for {{user_name}};`
|
2016-05-12 21:05:53 +08:00
|
|
|
|
|
|
|
- Add user to current project:
|
|
|
|
|
2016-05-12 21:19:55 +08:00
|
|
|
`add user {{user_name}};`
|
2016-05-12 21:05:53 +08:00
|
|
|
|
|
|
|
- Grant a set of authorities to a user:
|
|
|
|
|
2016-05-15 10:56:50 +08:00
|
|
|
`grant {{action_list}} on {{object_type}} {{object_name}} to user {{user_name}};`
|
2016-05-12 21:05:53 +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-15 10:56:50 +08:00
|
|
|
- Grant a role to a user:
|
2016-05-12 21:05:53 +08:00
|
|
|
|
2016-05-14 11:20:48 +08:00
|
|
|
`grant {{role_name}} to {{user_name}};`
|
2016-05-12 21:05:53 +08:00
|
|
|
|
2016-05-14 11:20:48 +08:00
|
|
|
- Grant a set of authorities to a user role:
|
2016-05-12 21:05:53 +08:00
|
|
|
|
2016-05-15 10:56:50 +08:00
|
|
|
`grant {{action_list}} on {{object_type}} {{object_name}} to role {{role_name}};`
|