This hook allows plugins to specify the restriction labels for a given user.

There should generally only be one plugin using this hook, as part of a pluggable permission system.


Name Type Description
user SecurityPrincipal SecurityPrincipal being queried


Return information by changing these properties of the response object.

Name Type Description
labels LabelList Labels enabling the user to view or edit restricted attributes

JavaScript template

P.hook('hUserAttributeRestrictionLabels', function(response, user) {
    // Respond to hook, for example
    // response.labels = ...