Skip to content

Commit

Permalink
MDL-75279 mod_lti: Add username to NRPS response
Browse files Browse the repository at this point in the history
  • Loading branch information
spvickers committed Dec 19, 2022
1 parent 24c009f commit 27cc23c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -430,7 +430,10 @@ private function users_to_json($resource, $users, $course, $exclude, $limitfrom,
'source.value' => format_string($user->lastname)],
'Person.email.primary' => ['type' => 'email',
'member.field' => 'email',
'source.value' => format_string($user->email)]
'source.value' => format_string($user->email)],
'User.username' => ['type' => 'name',
'member.field' => 'ext_user_username',
'source.value' => format_string($user->username)],
];

if (!is_null($lti)) {
Expand Down

0 comments on commit 27cc23c

Please sign in to comment.