canvas::API method account permissions (public)
<instance of canvas::API> account permissions \ [ -permissions permissions ] account_id
Defined in packages/xooauth/tcl/canvas-procs.tcl
Returns permission information for the calling user and the given account. You may use `self` as the account id to check permissions against the domain root account. The caller must have an account role or admin (teacher/TA/designer) enrollment in a course in the account. Details: https://canvas.instructure.com/doc/api/accounts.html
- Switches:
- -permissions (optional)
- Parameters:
- account_id (required, integer)
- Testcases:
- No testcase defined.
Source code: set r [:request -method GET -token ${:token} -url /accounts/${account_id}/permissions?[:params {permissions:array}]] return [:expect_status_code $r 200]XQL Not present: Generic, PostgreSQL, Oracle