getUserPropertyKeys method

Future<PropertyKeys> getUserPropertyKeys({
  1. String? accountId,
  2. String? userKey,
  3. String? username,
})

Returns the keys of all properties for a user.

Note: This operation does not access the user properties created and maintained in Jira.

Permissions required:

  • Administer Jira global permission, to access the property keys on any user.
  • Access to Jira, to access the calling user's property keys.

Implementation

Future<PropertyKeys> getUserPropertyKeys(
    {String? accountId, String? userKey, String? username}) async {
  return PropertyKeys.fromJson(await _client.send(
    'get',
    'rest/api/3/user/properties',
    queryParameters: {
      if (accountId != null) 'accountId': accountId,
      if (userKey != null) 'userKey': userKey,
      if (username != null) 'username': username,
    },
  ));
}