Display custom [user profile field] in "Browse list of users"

Display custom [user profile field] in "Browse list of users"

av Kyriakos Mavridis -
Antall svar: 4

I want to display a custom [user profile field] on page [Browse list of users]. I have created a custom [user profile field], with [short name] = [regnum], and added [$CFG->showuseridentity ='regnum';] in [config.php]. Page [Browse list of users] returns [Error reading from database]. When I change [regnum] to [email] (the build-in field) the page displays correctly.

I am thinking that maybe when it comes to custom user profile fields, the short field name must be prepended with a suffix, in [$CFG->showuseridentity ='regnum';]. Thank you for your help and I apologize if this question has already been answered somewhere in the forum.

Gjennomsnittlig vurdering: -
Som svar til Kyriakos Mavridis

Re: Display custom [user profile field] in "Browse list of users"

av Michael Aherne -
Bilde av Core developers Bilde av Peer reviewers Bilde av Plugin developers

Only built-in fields can be used in the user identity (i.e. columns in the user table). It would be fantastic to be able to use custom profile fields but that's not a feature of Moodle at the moment.

Quite a few institutions hijack one of the built-in fields to show registration number, so you might want to consider that (we use msn). It's a horrible hack but registration number is such an important identifier in universities that it has to be available in the identity.

Gjennomsnittlig vurdering:Useful (1)
Som svar til Michael Aherne

Re: Display custom [user profile field] in "Browse list of users"

av Kyriakos Mavridis -

Thank you very much for your reply. Indeed, the registration number is maybe the single most important identifier when it comes to university students. Maybe the Moodle development team could consider re-purposing one of the <<least>> important build-in fields to serve as a registration number holder.

Som svar til Kyriakos Mavridis

Re: Display custom [user profile field] in "Browse list of users"

av AL Rachels -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers

One of the Optional fields is already named, ID number, and if that is not specific enough, you can use, Language customization, to change it. When customizing, search for those Optional fields in, core.

Som svar til AL Rachels

Re: Display custom [user profile field] in "Browse list of users"

av Michael Aherne -
Bilde av Core developers Bilde av Peer reviewers Bilde av Plugin developers

The problem with that is that staff don't have registration numbers, so if you have some kind of automated user creation process you'll be using something else as idnumber (in our place it's a thing called "person code").

It would definitely be useful to be able to use custom profile fields in the user identity, but I could never see a good way to implement it that wouldn't be detrimental to performance.

Gjennomsnittlig vurdering:Useful (1)