Saltar al contenido principal

Function: courseRoles()

function courseRoles(
context,
siteUrl,
userId,
courseId
): Promise<object[]>;

Defined in: areas/site/users.ts:61

A user's roles in a course, from their profile there: role links carry the role id in any language.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
userIdnumber
courseIdnumber

Returns​

Promise<object[]>