--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| class AdminsController < ApplicationController | |
| before_filter :require_user | |
| before_filter :get_context | |
| include Api::V1::Admin | |
| # @API Make an account admin | |
| # | |
| # Flag an existing user as an admin within the account. | |
| # | |
| # @argument user_id [Required, Integer] | |
| # The id of the user to promote. | |
| # | |
| # @argument role [String] (deprecated) | |
| # The user's admin relationship with the account will be created with the | |
| # given role. Defaults to 'AccountAdmin'. | |
| # | |
| # @argument role_id [Integer] | |
| # The user's admin relationship with the account will be created with the | |
| # given role. Defaults to the built-in role for 'AccountAdmin'. | |
| # | |
| # @argument send_confirmation [Boolean] Send a notification email to | |
| # the new admin if true. Default is true. | |
| # | |
| # @returns Admin |
Flag an existing user as an admin within the account.
The id of the user to promote.
(deprecated)
The user's admin relationship with the account will be created with the given role. Defaults to 'AccountAdmin'.
The user's admin relationship with the account will be created with the given role. Defaults to the built-in role for 'AccountAdmin'.
Send a notification email to