Add 'pronouns' user attribute to the API model for users

Release notes

In September of 2021 GitLab released more personal and inclusive user profile features, in particular, the pronouns field. Many organizations have external user accounts that are in some way linked to their GitLab accounts, and it would be useful to be able to synchronize profile data such as pronouns between these accounts.

In the Drupal community we have our contributors Drupal.org profiles, which include pronouns, and we have our self-hosted instance of GitLab - and we would like to use the API to update the GitLab user profile pronouns attribute with a PUT request.

Problem to solve

The problem to solve is providing access to CRUD operations for the 'pronouns' attribute of user profiles.

Proposal

The proposal is to add the pronouns attribute (and perhaps the other recently added attributes such as pronunciation and local time) to the user api: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/api/users.rb

Intended users

The primary persona that needs to use the User API to synchronize 'pronouns' data is actually the administrator who integrates GitLab into the business processes of the organization.

That might most closely map to:

Feature Usage Metrics

Frequence of requests for this attribute in the API would be a good way to track usage of this feature.