Skip to content

Fixed create user parameters for v3 #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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