createUser method

Future<User> createUser({
  1. required NewUserDetails body,
})

Creates a user. This resource is retained for legacy compatibility. As soon as a more suitable alternative is available this resource will be deprecated.

If the user exists and has access to Jira, the operation returns a 201 status. If the user exists but does not have access to Jira, the operation returns a 400 status.

Permissions required: Administer Jira global permission.

Implementation

Future<User> createUser({required NewUserDetails body}) async {
  return User.fromJson(await _client.send(
    'post',
    'rest/api/3/user',
    body: body.toJson(),
  ));
}