Skip to content

Commit

Permalink
Fixed create user parameters for v3 (#331)
Browse files Browse the repository at this point in the history
* Fixed create user parameters for v3

* Update src/version3/models/newUserDetails.ts

Co-authored-by: Vladislav Tupikin <[email protected]>

---------

Co-authored-by: Vladislav Tupikin <[email protected]>
  • Loading branch information
Appelberg-s and MrRefactoring authored Dec 29, 2024
1 parent fb6151e commit 3629180
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/version3/models/newUserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ export interface NewUserDetails {
self?: string;
/** The email address for the user. */
emailAddress: string;
/**
* Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery,
* jira-software. To create a user without product access, set this field to be an empty array.
* Defaults to ['jira-core', 'jira-servicedesk', 'jira-product-discovery', 'jira-software'].
*/
products?: ('jira-core' | 'jira-servicedesk' | 'jira-product-discovery' | 'jira-software' | string)[];
}
1 change: 1 addition & 0 deletions src/version3/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class Users {
method: 'POST',
data: {
emailAddress: parameters.emailAddress,
products: parameters.products ? parameters.products : ['jira-core', 'jira-servicedesk', 'jira-product-discovery', 'jira-software'],
self: parameters.self,
},
};
Expand Down

0 comments on commit 3629180

Please sign in to comment.