Site.authorizePrivilegedModule (Method)

Associates a group with a module such that the module will always run with the group's permissions.

Returns:

Void

Arguments:

Name Type Required Description
modulePath ModulePath Required Path to module to be given specific 'sticky' authorization.
groupID GroupID_Deletable Required ID of group to authorize. Must not be 0 (anonymous), 1 (authenticated) or 2 (contributor).

Context:

License Requirements (none)
Permission Requirements site:SiteAdmin
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

None

Notes:

None