@resolution/organizations-api-client 0.15.8 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +5 -0
- package/lib/index.js +12 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/core/CommonHttpClient.d.ts +4 -0
- package/lib/openapi/core/CommonHttpClient.js +2 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/organizations/BaseOrganizationsApiClient.d.ts +5 -5
- package/lib/openapi/organizations/BaseOrganizationsApiClient.js +15 -1
- package/lib/openapi/organizations/BaseOrganizationsApiClient.js.map +1 -1
- package/lib/openapi/organizations/models/common.d.ts +39 -4
- package/lib/openapi/organizations/models/common.js +6 -2
- package/lib/openapi/organizations/models/common.js.map +1 -1
- package/lib/openapi/organizations/models/directory.d.ts +0 -203
- package/lib/openapi/organizations/models/directory.js +0 -59
- package/lib/openapi/organizations/models/directory.js.map +1 -1
- package/lib/openapi/organizations/models/groups.d.ts +68 -5
- package/lib/openapi/organizations/models/groups.js +18 -1
- package/lib/openapi/organizations/models/groups.js.map +1 -1
- package/lib/openapi/organizations/models/users.d.ts +337 -5
- package/lib/openapi/organizations/models/users.js +87 -2
- package/lib/openapi/organizations/models/users.js.map +1 -1
- package/lib/openapi/organizations/services/DirectoryService.d.ts +3 -607
- package/lib/openapi/organizations/services/DirectoryService.js +0 -550
- package/lib/openapi/organizations/services/DirectoryService.js.map +1 -1
- package/lib/openapi/organizations/services/DomainsService.d.ts +4 -4
- package/lib/openapi/organizations/services/EventsService.d.ts +8 -8
- package/lib/openapi/organizations/services/GroupsService.d.ts +605 -17
- package/lib/openapi/organizations/services/GroupsService.js +466 -0
- package/lib/openapi/organizations/services/GroupsService.js.map +1 -1
- package/lib/openapi/organizations/services/OrgsService.d.ts +2 -2
- package/lib/openapi/organizations/services/PoliciesService.d.ts +18 -18
- package/lib/openapi/organizations/services/UsersService.d.ts +542 -26
- package/lib/openapi/organizations/services/UsersService.js +488 -8
- package/lib/openapi/organizations/services/UsersService.js.map +1 -1
- package/lib/openapi/organizations/services/ValidateService.d.ts +2 -2
- package/lib/openapi/organizations/services/WorkspacesService.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type GroupsSearchRequest, type GroupsSearchPage, type MultiDirectoryGroupPage, type MultiDirectoryGroupDetails, type MultiDirectoryGroupRoleAssignmentPage, type MultiDirectoryGroupStats } from "../models/groups";
|
|
2
|
+
import { type CreateGroupInput, type AddGroupMembershipInput, type GroupRoleAssignmentInput, type GroupsSearchRequest, type GroupsSearchPage, type MultiDirectoryGroupPage, type MultiDirectoryGroupDetails, type MultiDirectoryGroupRoleAssignmentPage, type MultiDirectoryGroupStats } from "../models/groups";
|
|
3
3
|
/**
|
|
4
4
|
* Orgs Groups APIs
|
|
5
5
|
*
|
|
@@ -7,6 +7,256 @@ import { type GroupsSearchRequest, type GroupsSearchPage, type MultiDirectoryGro
|
|
|
7
7
|
* @category Services
|
|
8
8
|
*/
|
|
9
9
|
export declare class GroupsService extends CommonHttpService {
|
|
10
|
+
/**
|
|
11
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
12
|
+
* [Grant access to group
|
|
13
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-groupid-role-assignments-assign-post)
|
|
14
|
+
* instead.
|
|
15
|
+
*
|
|
16
|
+
* **The API is available for customers using the [new user management experience
|
|
17
|
+
* only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
|
|
18
|
+
*
|
|
19
|
+
* Assign roles that grant product access to groups. Please note that this
|
|
20
|
+
* operation adheres to eventual consistency, and it might take up to 30 seconds
|
|
21
|
+
* for changes to take effect.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated
|
|
24
|
+
* @returns Roles were successfully added to the group
|
|
25
|
+
* @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/roles/assign`
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-groupid-roles-assign-post
|
|
27
|
+
* @param params
|
|
28
|
+
*/
|
|
29
|
+
assignRoleToGroup: ({ orgId, groupId, groupRoleAssignmentInput }: {
|
|
30
|
+
/**
|
|
31
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
32
|
+
* Administration URL or when you create your API key.
|
|
33
|
+
*/
|
|
34
|
+
orgId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique ID that serves as reference to the group. Use the [Search for groups
|
|
37
|
+
* within an organization
|
|
38
|
+
* API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v1-orgs-orgid-groups-search-post)
|
|
39
|
+
* to get the groupId.
|
|
40
|
+
*/
|
|
41
|
+
groupId: string;
|
|
42
|
+
groupRoleAssignmentInput: GroupRoleAssignmentInput;
|
|
43
|
+
}) => Promise<{
|
|
44
|
+
/**
|
|
45
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
46
|
+
* this API.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* Group 12345 added Roles. ROLE `user` for RESOURCE `ari:cloud:identity::group/test-group-uuid1` and ROLE `user-access-admin` for RESOURCE `ari:cloud:identity::group/test-group-uuid2` is in progress. Changes may take up to 30 seconds to reflect.
|
|
50
|
+
*/
|
|
51
|
+
message: string;
|
|
52
|
+
} & {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
57
|
+
* [new Delete group
|
|
58
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-groupid-delete)
|
|
59
|
+
* instead.
|
|
60
|
+
*
|
|
61
|
+
* **The API is available for customers using the new user management experience
|
|
62
|
+
* only. Learn more about the [new user management
|
|
63
|
+
* experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
|
|
64
|
+
*
|
|
65
|
+
* This API will:
|
|
66
|
+
* - Delete a group from the organization's directory.
|
|
67
|
+
* - Delete the permissions, content access, notification schemes, and roles
|
|
68
|
+
* granted to the users.
|
|
69
|
+
*
|
|
70
|
+
* This API will not:
|
|
71
|
+
* - Delete groups that are synchronized through SCIM. To delete these groups, you
|
|
72
|
+
* will need to delete them within your external identity provider. Learn more
|
|
73
|
+
* about [configuring user provisioning with an identity
|
|
74
|
+
* provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
|
|
75
|
+
* - Delete a group if it’s marked as a [default
|
|
76
|
+
* group](https://support.atlassian.com/user-management/docs/default-groups-and-permissions).
|
|
77
|
+
* - Delete `site-admin` group and therefore revoke org-admin role from a user.
|
|
78
|
+
* - Delete a group if it contains users (unless forced).
|
|
79
|
+
*
|
|
80
|
+
* Learn the fastest way to call the API with a detailed
|
|
81
|
+
* [tutorial](https://developer.atlassian.com/cloud/admin/organization/delete-group/#delete-group).
|
|
82
|
+
*
|
|
83
|
+
* @deprecated
|
|
84
|
+
* @returns Group was successfully deleted from organization's directory.
|
|
85
|
+
* @path DELETE `/v1/orgs/{orgId}/directory/groups/{groupId}`
|
|
86
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-groupid-delete
|
|
87
|
+
* @param params
|
|
88
|
+
*/
|
|
89
|
+
deleteV1OrgsOrgIdDirectoryGroupsGroupId: ({ orgId, groupId, forceIfNotEmpty }: {
|
|
90
|
+
/**
|
|
91
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
92
|
+
* Administration URL or when you create your API key.
|
|
93
|
+
*/
|
|
94
|
+
orgId: string;
|
|
95
|
+
/**
|
|
96
|
+
* Unique ID that serves as reference to the group.
|
|
97
|
+
* Use the [Jira Group Search
|
|
98
|
+
* API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-groups-picker-get)
|
|
99
|
+
* to get the groupId (if Jira is available for your Organization). **Jira APIs
|
|
100
|
+
* use a different [authentication method
|
|
101
|
+
* ](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).**
|
|
102
|
+
* If you don’t have Jira, export a .csv of the user list. Make sure to select
|
|
103
|
+
* **pivot to column** when prompted. Learn how to [export users from a
|
|
104
|
+
* site](https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/).
|
|
105
|
+
*/
|
|
106
|
+
groupId: string;
|
|
107
|
+
/**
|
|
108
|
+
* Groups cannot be deleted if it contains users, unless `forceIfNotEmpty=true` is
|
|
109
|
+
* provided
|
|
110
|
+
*/
|
|
111
|
+
forceIfNotEmpty?: boolean | undefined;
|
|
112
|
+
}) => Promise<{
|
|
113
|
+
/**
|
|
114
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
115
|
+
* this API.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* Group 0980d761-fce5-4ea1-83e4-9cc8f5db92ae was removed
|
|
119
|
+
*/
|
|
120
|
+
message?: string | undefined;
|
|
121
|
+
} & {
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
126
|
+
* [new Remove user from group
|
|
127
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-groupid-memberships-accountid-delete)
|
|
128
|
+
* instead.
|
|
129
|
+
*
|
|
130
|
+
* **The API is available for customers using the new user management experience
|
|
131
|
+
* only. Learn more about the [new user management
|
|
132
|
+
* experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
|
|
133
|
+
*
|
|
134
|
+
* This API will:
|
|
135
|
+
* - Remove user from a group.
|
|
136
|
+
* - Remove multiple permissions for user at once.
|
|
137
|
+
* - Easily manage permissions, content access, notification schemes, and roles.
|
|
138
|
+
*
|
|
139
|
+
* This API will not:
|
|
140
|
+
* - Make modifications to group memberships that are synchronized through SCIM.
|
|
141
|
+
* To make changes to these memberships, you will need to modify them within your
|
|
142
|
+
* external identity provider. Learn more about [configuring user provisioning
|
|
143
|
+
* with an identity
|
|
144
|
+
* provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
|
|
145
|
+
* - Modify `site-admin` group and therefore revoke org-admin role from a user.
|
|
146
|
+
*
|
|
147
|
+
* Learn the fastest way to call the API with a detailed
|
|
148
|
+
* [tutorial](https://developer.atlassian.com/cloud/admin/organization/remove-user-to-group/).
|
|
149
|
+
*
|
|
150
|
+
* @deprecated
|
|
151
|
+
* @returns User was successfully removed from the group in the organization directory.
|
|
152
|
+
* @path DELETE `/v1/orgs/{orgId}/directory/groups/{groupId}/memberships/{accountId}`
|
|
153
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-groupid-memberships-accountid-delete
|
|
154
|
+
* @param params
|
|
155
|
+
*/
|
|
156
|
+
deleteV1OrgsOrgIdDirectoryGroupsGroupIdMembershipsAccountId: ({ orgId, groupId, accountId }: {
|
|
157
|
+
/**
|
|
158
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
159
|
+
* Administration URL or when you create your API key.
|
|
160
|
+
*/
|
|
161
|
+
orgId: string;
|
|
162
|
+
/**
|
|
163
|
+
* Unique ID that serves as reference to the group.
|
|
164
|
+
* Use the [Jira Group Search
|
|
165
|
+
* API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-groups-picker-get)
|
|
166
|
+
* to get the groupId (if Jira is available for your Organization). **Jira APIs
|
|
167
|
+
* use a different [authentication method
|
|
168
|
+
* ](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).**
|
|
169
|
+
* If you don’t have Jira, export a .csv of the user list. Make sure to select
|
|
170
|
+
* **pivot to column** when prompted. Learn how to [export users from a
|
|
171
|
+
* site](https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/).
|
|
172
|
+
*/
|
|
173
|
+
groupId: string;
|
|
174
|
+
/**
|
|
175
|
+
* Unique ID of the user's account that you are adding to the group.
|
|
176
|
+
* Use the [Jira User Search
|
|
177
|
+
* API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-users-search-get)
|
|
178
|
+
* to get the accountId (if Jira is available for your Organization). **Jira APIs
|
|
179
|
+
* use a different [authentication method
|
|
180
|
+
* ](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).**
|
|
181
|
+
* If you don’t have Jira, export a .csv of the user list. Learn how to [export
|
|
182
|
+
* users from a
|
|
183
|
+
* site](https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/).
|
|
184
|
+
*/
|
|
185
|
+
accountId: string;
|
|
186
|
+
}) => Promise<{
|
|
187
|
+
/**
|
|
188
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
189
|
+
* this API.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* User 63ec0aa0c5061c632c0cddde was removed from group fca77b90-a2a9-4385-961b-1377b3dbeb0b
|
|
193
|
+
*/
|
|
194
|
+
message?: string | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
}>;
|
|
198
|
+
/**
|
|
199
|
+
* Delete a group from a directory if you don’t need this group anymore. This
|
|
200
|
+
* removes any app access and permissions granted by this group from all members.
|
|
201
|
+
* A member can still access an app if they’re in another group that grants access
|
|
202
|
+
* to the same app.
|
|
203
|
+
*
|
|
204
|
+
* @path DELETE `/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}`
|
|
205
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-groupid-delete
|
|
206
|
+
* @param params
|
|
207
|
+
*/
|
|
208
|
+
deleteV2OrgsOrgIdDirectoriesDirectoryIdGroupsGroupId: ({ orgId, directoryId, groupId }: {
|
|
209
|
+
/**
|
|
210
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
211
|
+
* Administration URL or when you create your API key.
|
|
212
|
+
*/
|
|
213
|
+
orgId: string;
|
|
214
|
+
/**
|
|
215
|
+
* A directory has a unique ID. Use the [Get directories
|
|
216
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
217
|
+
* to find the directory ID.
|
|
218
|
+
*/
|
|
219
|
+
directoryId: string;
|
|
220
|
+
/**
|
|
221
|
+
* A group has a unique ID. Use the [Get groups
|
|
222
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
223
|
+
* to find the group ID.
|
|
224
|
+
*/
|
|
225
|
+
groupId: string;
|
|
226
|
+
}) => Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
* Remove a user from a group. This removes any app access and permissions granted
|
|
229
|
+
* by this group, but the user may still be in other groups that grant the same
|
|
230
|
+
* app access and permissions.
|
|
231
|
+
*
|
|
232
|
+
* @path DELETE `/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/memberships/{accountId}"`
|
|
233
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-groupid-memberships-accountid-delete
|
|
234
|
+
* @param params
|
|
235
|
+
*/
|
|
236
|
+
deleteV2OrgsOrgIdDirectoriesDirectoryIdGroupsGroupIdMembershipsAccountId: ({ orgId, directoryId, groupId, accountId }: {
|
|
237
|
+
/**
|
|
238
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
239
|
+
* Administration URL or when you create your API key.
|
|
240
|
+
*/
|
|
241
|
+
orgId: string;
|
|
242
|
+
/**
|
|
243
|
+
* A directory has a unique ID. Use the [Get directories
|
|
244
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
245
|
+
* to find the directory ID.
|
|
246
|
+
*/
|
|
247
|
+
directoryId: string;
|
|
248
|
+
/**
|
|
249
|
+
* A group has a unique ID. Use the [Get groups
|
|
250
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
251
|
+
* to find the group ID.
|
|
252
|
+
*/
|
|
253
|
+
groupId: string;
|
|
254
|
+
/**
|
|
255
|
+
* Every user has a unique ID. Find a user’s account ID by using the [Get users
|
|
256
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-users/#api-v2-orgs-orgid-directories-directoryid-users-get).
|
|
257
|
+
*/
|
|
258
|
+
accountId: string;
|
|
259
|
+
}) => Promise<void>;
|
|
10
260
|
/**
|
|
11
261
|
* Returns the details of a group.
|
|
12
262
|
*
|
|
@@ -17,8 +267,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
17
267
|
*/
|
|
18
268
|
getGroup: ({ orgId, directoryId, groupId }: {
|
|
19
269
|
/**
|
|
20
|
-
* Your organization
|
|
21
|
-
*
|
|
270
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
271
|
+
* Administration URL or when you create your API key.
|
|
22
272
|
*/
|
|
23
273
|
orgId: string;
|
|
24
274
|
/**
|
|
@@ -41,8 +291,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
41
291
|
*/
|
|
42
292
|
getGroupRoleAssignments: ({ orgId, directoryId, groupId, cursor, limit, directoryIds, resourceOwners, resourceIds, roleIds }: {
|
|
43
293
|
/**
|
|
44
|
-
* Your organization
|
|
45
|
-
*
|
|
294
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
295
|
+
* Administration URL or when you create your API key.
|
|
46
296
|
*/
|
|
47
297
|
orgId: string;
|
|
48
298
|
/**
|
|
@@ -114,7 +364,7 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
114
364
|
* - `atlassian/ai-access` - Can use AI features in AI-enabled apps they have
|
|
115
365
|
* access to.
|
|
116
366
|
*/
|
|
117
|
-
roleIds?: ("atlassian/user" | "atlassian/
|
|
367
|
+
roleIds?: ("atlassian/user" | "atlassian/admin" | "atlassian/guest" | "atlassian/customer" | "atlassian/contributor" | "atlassian/basic" | "atlassian/stakeholder" | "atlassian/org-admin" | "atlassian/site-admin" | "atlassian/user-access-admin" | "atlassian/ai-access")[] | undefined;
|
|
118
368
|
}) => Promise<MultiDirectoryGroupRoleAssignmentPage>;
|
|
119
369
|
/**
|
|
120
370
|
* Returns a page of groups in an organization that match the supplied parameters.
|
|
@@ -126,8 +376,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
126
376
|
*/
|
|
127
377
|
getGroups: ({ orgId, directoryId, cursor, limit, directoryIds, accountIds, groupIds, resourceOwners, resourceIds, searchTerm, counts, sortBy, roleIds }: {
|
|
128
378
|
/**
|
|
129
|
-
* Your organization
|
|
130
|
-
*
|
|
379
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
380
|
+
* Administration URL or when you create your API key.
|
|
131
381
|
*/
|
|
132
382
|
orgId: string;
|
|
133
383
|
/**
|
|
@@ -192,7 +442,7 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
192
442
|
*/
|
|
193
443
|
sortBy?: ({
|
|
194
444
|
/** The name of the field to sort the results by. */
|
|
195
|
-
field: "name"
|
|
445
|
+
field: "name";
|
|
196
446
|
/** The direction to sort the results by. */
|
|
197
447
|
direction: "asc" | "desc";
|
|
198
448
|
} & {
|
|
@@ -224,7 +474,7 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
224
474
|
* - `atlassian/ai-access` - Can use AI features in AI-enabled apps they have
|
|
225
475
|
* access to.
|
|
226
476
|
*/
|
|
227
|
-
roleIds?: ("atlassian/user" | "atlassian/
|
|
477
|
+
roleIds?: ("atlassian/user" | "atlassian/admin" | "atlassian/guest" | "atlassian/customer" | "atlassian/contributor" | "atlassian/basic" | "atlassian/stakeholder" | "atlassian/org-admin" | "atlassian/site-admin" | "atlassian/user-access-admin" | "atlassian/ai-access")[] | undefined;
|
|
228
478
|
}) => Promise<MultiDirectoryGroupPage>;
|
|
229
479
|
/**
|
|
230
480
|
* Returns the count of groups in an organization that match the supplied
|
|
@@ -237,8 +487,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
237
487
|
*/
|
|
238
488
|
getGroupsCount: ({ orgId, directoryId, directoryIds, accountIds, groupIds, resourceOwners, resourceIds, searchTerm, roleIds }: {
|
|
239
489
|
/**
|
|
240
|
-
* Your organization
|
|
241
|
-
*
|
|
490
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
491
|
+
* Administration URL or when you create your API key.
|
|
242
492
|
*/
|
|
243
493
|
orgId: string;
|
|
244
494
|
/**
|
|
@@ -295,7 +545,7 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
295
545
|
* - `atlassian/ai-access` - Can use AI features in AI-enabled apps they have
|
|
296
546
|
* access to.
|
|
297
547
|
*/
|
|
298
|
-
roleIds?: ("atlassian/user" | "atlassian/
|
|
548
|
+
roleIds?: ("atlassian/user" | "atlassian/admin" | "atlassian/guest" | "atlassian/customer" | "atlassian/contributor" | "atlassian/basic" | "atlassian/stakeholder" | "atlassian/org-admin" | "atlassian/site-admin" | "atlassian/user-access-admin" | "atlassian/ai-access")[] | undefined;
|
|
299
549
|
}) => Promise<{
|
|
300
550
|
/** The total number of groups matching the criteria. */
|
|
301
551
|
count?: number | undefined;
|
|
@@ -312,8 +562,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
312
562
|
*/
|
|
313
563
|
getGroupsStats: ({ orgId, directoryId }: {
|
|
314
564
|
/**
|
|
315
|
-
* Your organization
|
|
316
|
-
*
|
|
565
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
566
|
+
* Administration URL or when you create your API key.
|
|
317
567
|
*/
|
|
318
568
|
orgId: string;
|
|
319
569
|
/**
|
|
@@ -324,6 +574,343 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
324
574
|
directoryId: string;
|
|
325
575
|
}) => Promise<MultiDirectoryGroupStats>;
|
|
326
576
|
/**
|
|
577
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
578
|
+
* [new Create group
|
|
579
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-post)
|
|
580
|
+
* instead.
|
|
581
|
+
*
|
|
582
|
+
* **The API is available for customers using the new user management experience
|
|
583
|
+
* only. Learn more about the [new user management
|
|
584
|
+
* experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
|
|
585
|
+
*
|
|
586
|
+
* This API will:
|
|
587
|
+
* - Create a group in the organization's directory.
|
|
588
|
+
* - Create a collection of users that you can use to easily manage permissions,
|
|
589
|
+
* content access, notification schemes, and roles.
|
|
590
|
+
*
|
|
591
|
+
* **The creation of new groups using existing group names is not permitted.**
|
|
592
|
+
*
|
|
593
|
+
* Learn the fastest way to call the API with a detailed
|
|
594
|
+
* [tutorial](https://developer.atlassian.com/cloud/admin/organization/create-group/#create-group).
|
|
595
|
+
*
|
|
596
|
+
* @deprecated
|
|
597
|
+
* @returns Request to create group was successfully accepted and will be eventually created in the organization directory.
|
|
598
|
+
* @path POST `/v1/orgs/{orgId}/directory/groups`
|
|
599
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-post
|
|
600
|
+
* @param params
|
|
601
|
+
*/
|
|
602
|
+
postV1OrgsOrgIdDirectoryGroups: ({ orgId, createGroupInput }: {
|
|
603
|
+
/**
|
|
604
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
605
|
+
* Administration URL or when you create your API key.
|
|
606
|
+
*/
|
|
607
|
+
orgId: string;
|
|
608
|
+
createGroupInput: CreateGroupInput;
|
|
609
|
+
}) => Promise<{
|
|
610
|
+
/**
|
|
611
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
612
|
+
* this API.
|
|
613
|
+
*
|
|
614
|
+
* @example
|
|
615
|
+
* Group test-group was created
|
|
616
|
+
*/
|
|
617
|
+
message?: string | undefined;
|
|
618
|
+
/**
|
|
619
|
+
* The unique identifier of the group.
|
|
620
|
+
*
|
|
621
|
+
* @example
|
|
622
|
+
* f29c72a8-7681-4ed0-8a2c-83372bf67437
|
|
623
|
+
*/
|
|
624
|
+
groupId?: string | undefined;
|
|
625
|
+
} & {
|
|
626
|
+
[key: string]: unknown;
|
|
627
|
+
}>;
|
|
628
|
+
/**
|
|
629
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
630
|
+
* [new Add user to group
|
|
631
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-groupid-memberships-post)
|
|
632
|
+
* instead.
|
|
633
|
+
*
|
|
634
|
+
* **The API is available for customers using the new user management experience
|
|
635
|
+
* only. Learn more about the [new user management
|
|
636
|
+
* experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
|
|
637
|
+
*
|
|
638
|
+
* This API will:
|
|
639
|
+
* - Add user to a group.
|
|
640
|
+
* - Assign multiple permissions to user at once.
|
|
641
|
+
* - Easily manage permissions, content access, notification schemes, and roles.
|
|
642
|
+
*
|
|
643
|
+
* This API will not:
|
|
644
|
+
* - Make modifications to group memberships that are synchronized through SCIM.
|
|
645
|
+
* To make changes to these memberships, you will need to modify them within your
|
|
646
|
+
* external identity provider. Learn more about [configuring user provisioning
|
|
647
|
+
* with an identity
|
|
648
|
+
* provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
|
|
649
|
+
* - Add a user to a group that gives access to a product which is breaching it's
|
|
650
|
+
* license limit.\
|
|
651
|
+
* To make these changes, you will need to [remove
|
|
652
|
+
* users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-groups-groupid-memberships-accountid-delete)
|
|
653
|
+
* from the group or
|
|
654
|
+
* [suspend
|
|
655
|
+
* users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-suspend-access-post)
|
|
656
|
+
* that are in the group first.\
|
|
657
|
+
* You can also [manage your
|
|
658
|
+
* subscription](https://support.atlassian.com/subscriptions-and-billing/resources/)
|
|
659
|
+
* for the breaching product to increase your license limits.
|
|
660
|
+
* - Add a user to any group when your organisation has too many products that are
|
|
661
|
+
* breaching their license limits.
|
|
662
|
+
*
|
|
663
|
+
* Learn the fastest way to call the API with a detailed
|
|
664
|
+
* [tutorial](https://developer.atlassian.com/cloud/admin/organization/add-user-to-group/).
|
|
665
|
+
*
|
|
666
|
+
* @deprecated
|
|
667
|
+
* @returns User was successfully added to the group in the organization directory.
|
|
668
|
+
* @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/memberships`
|
|
669
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-groupid-memberships-post
|
|
670
|
+
* @param params
|
|
671
|
+
*/
|
|
672
|
+
postV1OrgsOrgIdDirectoryGroupsGroupIdMemberships: ({ orgId, groupId, addGroupMembershipInput }: {
|
|
673
|
+
/**
|
|
674
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
675
|
+
* Administration URL or when you create your API key.
|
|
676
|
+
*/
|
|
677
|
+
orgId: string;
|
|
678
|
+
/**
|
|
679
|
+
* Unique ID that serves as reference to the group.
|
|
680
|
+
* Use the [Jira Group Search
|
|
681
|
+
* API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-groups-picker-get)
|
|
682
|
+
* to get the groupId (if Jira is available for your Organization). **Jira APIs
|
|
683
|
+
* use a different [authentication method
|
|
684
|
+
* ](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).**
|
|
685
|
+
* If you don’t have Jira, export a .csv of the user list. Make sure to select
|
|
686
|
+
* **pivot to column** when prompted. Learn how to [export users from a
|
|
687
|
+
* site](https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/).
|
|
688
|
+
*/
|
|
689
|
+
groupId: string;
|
|
690
|
+
addGroupMembershipInput: AddGroupMembershipInput;
|
|
691
|
+
}) => Promise<{
|
|
692
|
+
/**
|
|
693
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
694
|
+
* this API.
|
|
695
|
+
*
|
|
696
|
+
* @example
|
|
697
|
+
* User 637194fa77acd224b33bfae3 was added to group 9233fb03-53cc-4463-9698-047aedbffb5c
|
|
698
|
+
*/
|
|
699
|
+
message?: string | undefined;
|
|
700
|
+
} & {
|
|
701
|
+
[key: string]: unknown;
|
|
702
|
+
}>;
|
|
703
|
+
/**
|
|
704
|
+
* Create a group in a directory to manage app access and permissions for multiple
|
|
705
|
+
* users together.
|
|
706
|
+
*
|
|
707
|
+
* @path POST `/v2/orgs/{orgId}/directories/{directoryId}/groups`
|
|
708
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-post
|
|
709
|
+
* @param params
|
|
710
|
+
*/
|
|
711
|
+
postV2OrgsOrgIdDirectoriesDirectoryIdGroups: ({ orgId, directoryId, requestBody }: {
|
|
712
|
+
/**
|
|
713
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
714
|
+
* Administration URL or when you create your API key.
|
|
715
|
+
*/
|
|
716
|
+
orgId: string;
|
|
717
|
+
/**
|
|
718
|
+
* A directory has a unique ID. Use the [Get directories
|
|
719
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
720
|
+
* to find the directory ID.
|
|
721
|
+
*/
|
|
722
|
+
directoryId: string;
|
|
723
|
+
requestBody: {
|
|
724
|
+
/** Name the group. */
|
|
725
|
+
name: string;
|
|
726
|
+
/** Describe what the group is or what it might be used for. */
|
|
727
|
+
description?: string | undefined;
|
|
728
|
+
} & {
|
|
729
|
+
[key: string]: unknown;
|
|
730
|
+
};
|
|
731
|
+
}) => Promise<void>;
|
|
732
|
+
/**
|
|
733
|
+
* Add a user to a group. This gives the user the same app access and permissions
|
|
734
|
+
* as the group. The user must be in the same directory as the group.
|
|
735
|
+
*
|
|
736
|
+
* You can’t add a user to a group synced from an identity provider. Manage this
|
|
737
|
+
* group in your identity provider instead.
|
|
738
|
+
*
|
|
739
|
+
* You can’t add a user to a group if you’ve exceeded your user limit for an app
|
|
740
|
+
* that the group grants access to. Increase your user limit or suspend another
|
|
741
|
+
* user from the app first.
|
|
742
|
+
*
|
|
743
|
+
* @path POST `/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/memberships`
|
|
744
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-groupid-memberships-post
|
|
745
|
+
* @param params
|
|
746
|
+
*/
|
|
747
|
+
postV2OrgsOrgIdDirectoriesDirectoryIdGroupsGroupIdMemberships: ({ orgId, directoryId, groupId, requestBody }: {
|
|
748
|
+
/**
|
|
749
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
750
|
+
* Administration URL or when you create your API key.
|
|
751
|
+
*/
|
|
752
|
+
orgId: string;
|
|
753
|
+
/**
|
|
754
|
+
* A directory has a unique ID. Use the [Get directories
|
|
755
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
756
|
+
* to find the directory ID.
|
|
757
|
+
*/
|
|
758
|
+
directoryId: string;
|
|
759
|
+
/**
|
|
760
|
+
* A group has a unique ID. Use the [Get groups
|
|
761
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
762
|
+
* to find the group ID.
|
|
763
|
+
*/
|
|
764
|
+
groupId: string;
|
|
765
|
+
requestBody: {
|
|
766
|
+
/**
|
|
767
|
+
* Every user has a unique ID. Find a user’s account ID by using the [Get users
|
|
768
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-users/#api-v2-orgs-orgid-directories-directoryid-users-get).
|
|
769
|
+
*/
|
|
770
|
+
accountId: string;
|
|
771
|
+
} & {
|
|
772
|
+
[key: string]: unknown;
|
|
773
|
+
};
|
|
774
|
+
}) => Promise<void>;
|
|
775
|
+
/**
|
|
776
|
+
* Assign a role to a group to assign all members the same role.
|
|
777
|
+
*
|
|
778
|
+
* @path POST `/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments/assign`
|
|
779
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-groupid-role-assignments-assign-post
|
|
780
|
+
* @param params
|
|
781
|
+
*/
|
|
782
|
+
postV2OrgsOrgIdDirectoriesDirectoryIdGroupsGroupIdRoleAssignmentsAssign: ({ orgId, directoryId, groupId, requestBody }: {
|
|
783
|
+
/**
|
|
784
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
785
|
+
* Administration URL or when you create your API key.
|
|
786
|
+
*/
|
|
787
|
+
orgId: string;
|
|
788
|
+
/**
|
|
789
|
+
* A directory has a unique ID. Use the [Get directories
|
|
790
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
791
|
+
* to find the directory ID.
|
|
792
|
+
*/
|
|
793
|
+
directoryId: string;
|
|
794
|
+
/**
|
|
795
|
+
* A group has a unique ID. Use the [Get groups
|
|
796
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
797
|
+
* to find the group ID.
|
|
798
|
+
*/
|
|
799
|
+
groupId: string;
|
|
800
|
+
requestBody: {
|
|
801
|
+
/**
|
|
802
|
+
* A resource or workspace refers to a specific instance of an Atlassian app,
|
|
803
|
+
* which has a unique ID. Use the [Get workspaces
|
|
804
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-workspaces/#api-v2-orgs-orgid-workspaces-post)
|
|
805
|
+
* to find the resource ID.
|
|
806
|
+
*/
|
|
807
|
+
resourceId: string;
|
|
808
|
+
/**
|
|
809
|
+
* Valid values: atlassian/user, atlassian/user-access-admin, atlassian/admin,
|
|
810
|
+
* atlassian/guest, atlassian/contributor, atlassian/customer, atlassian/basic,
|
|
811
|
+
* atlassian/stakeholder, atlassian/viewer
|
|
812
|
+
*/
|
|
813
|
+
roleId: string;
|
|
814
|
+
} & {
|
|
815
|
+
[key: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
}) => Promise<void>;
|
|
818
|
+
/**
|
|
819
|
+
* Revoke a role from a group to remove access to an app from all members. A
|
|
820
|
+
* member can still access the app if they’re in another group that grants access
|
|
821
|
+
* to the same app.
|
|
822
|
+
*
|
|
823
|
+
* @path POST `/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments/revoke'`
|
|
824
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v2-orgs-orgid-directories-directoryid-groups-groupid-role-assignments-revoke-post
|
|
825
|
+
* @param params
|
|
826
|
+
*/
|
|
827
|
+
postV2OrgsOrgIdDirectoriesDirectoryIdGroupsGroupIdRoleAssignmentsRevoke: ({ orgId, directoryId, groupId, requestBody }: {
|
|
828
|
+
/**
|
|
829
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
830
|
+
* Administration URL or when you create your API key.
|
|
831
|
+
*/
|
|
832
|
+
orgId: string;
|
|
833
|
+
/**
|
|
834
|
+
* A directory has a unique ID. Use the [Get directories
|
|
835
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v2-orgs-orgid-directories-get)
|
|
836
|
+
* to find the directory ID.
|
|
837
|
+
*/
|
|
838
|
+
directoryId: string;
|
|
839
|
+
/**
|
|
840
|
+
* A group has a unique ID. Use the [Get groups
|
|
841
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
842
|
+
* to find the group ID.
|
|
843
|
+
*/
|
|
844
|
+
groupId: string;
|
|
845
|
+
requestBody: {
|
|
846
|
+
/**
|
|
847
|
+
* A resource or workspace refers to a specific instance of an Atlassian app,
|
|
848
|
+
* which has a unique ID. Use the [Get workspaces
|
|
849
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-workspaces/#api-v2-orgs-orgid-workspaces-post)
|
|
850
|
+
* to find the resource ID.
|
|
851
|
+
*/
|
|
852
|
+
resourceId: string;
|
|
853
|
+
/**
|
|
854
|
+
* Valid values: atlassian/user, atlassian/user-access-admin, atlassian/admin,
|
|
855
|
+
* atlassian/guest, atlassian/contributor, atlassian/customer, atlassian/basic,
|
|
856
|
+
* atlassian/stakeholder, atlassian/viewer
|
|
857
|
+
*/
|
|
858
|
+
roleId: string;
|
|
859
|
+
} & {
|
|
860
|
+
[key: string]: unknown;
|
|
861
|
+
};
|
|
862
|
+
}) => Promise<void>;
|
|
863
|
+
/**
|
|
864
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
865
|
+
* [Remove access from group
|
|
866
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-groupid-role-assignments-revoke-post)
|
|
867
|
+
* instead.
|
|
868
|
+
*
|
|
869
|
+
* **The API is available for customers using the [new user management experience
|
|
870
|
+
* only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
|
|
871
|
+
*
|
|
872
|
+
* Revoke roles that provide product access to groups. It's important to note that
|
|
873
|
+
* this operation follows eventual consistency principles and may require up to 30
|
|
874
|
+
* seconds to take effect.
|
|
875
|
+
*
|
|
876
|
+
* @deprecated
|
|
877
|
+
* @returns Roles were successfully removed from the group
|
|
878
|
+
* @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/roles/revoke`
|
|
879
|
+
* @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups#api-v1-orgs-orgid-directory-groups-groupid-roles-revoke-post
|
|
880
|
+
* @param params
|
|
881
|
+
*/
|
|
882
|
+
revokeRoleToGroup: ({ orgId, groupId, groupRoleAssignmentInput }: {
|
|
883
|
+
/**
|
|
884
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
885
|
+
* Administration URL or when you create your API key.
|
|
886
|
+
*/
|
|
887
|
+
orgId: string;
|
|
888
|
+
/**
|
|
889
|
+
* Unique ID that serves as reference to the group. Use the [Search for groups
|
|
890
|
+
* within an organization
|
|
891
|
+
* API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v1-orgs-orgid-groups-search-post)
|
|
892
|
+
* to get the groupId.
|
|
893
|
+
*/
|
|
894
|
+
groupId: string;
|
|
895
|
+
groupRoleAssignmentInput: GroupRoleAssignmentInput;
|
|
896
|
+
}) => Promise<{
|
|
897
|
+
/**
|
|
898
|
+
* A description of the entities affected, and changes made as a result of calling
|
|
899
|
+
* this API.
|
|
900
|
+
*
|
|
901
|
+
* @example
|
|
902
|
+
* Group 12345 revoked Roles. ROLE1 for RESOURCE1 and ROLE2 for RESOURCE2 is in progress. Changes may take up to 30 seconds to reflect.
|
|
903
|
+
*/
|
|
904
|
+
message: string;
|
|
905
|
+
} & {
|
|
906
|
+
[key: string]: unknown;
|
|
907
|
+
}>;
|
|
908
|
+
/**
|
|
909
|
+
* **This API is deprecated and will no longer work after June 30, 2026.** Use the
|
|
910
|
+
* [Get groups in an organization
|
|
911
|
+
* endpoint](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get)
|
|
912
|
+
* instead.
|
|
913
|
+
*
|
|
327
914
|
* **The API is available for customers using the new user management experience
|
|
328
915
|
* only. [How the new user management experience
|
|
329
916
|
* works](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**
|
|
@@ -331,6 +918,7 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
331
918
|
* Returns a list of groups within an organization, offering search functionality
|
|
332
919
|
* through multiple parameters for more precise results.
|
|
333
920
|
*
|
|
921
|
+
* @deprecated
|
|
334
922
|
* @returns Organization found. Response contains group search results
|
|
335
923
|
*
|
|
336
924
|
* example: " groups_search_response":
|
|
@@ -355,8 +943,8 @@ export declare class GroupsService extends CommonHttpService {
|
|
|
355
943
|
*/
|
|
356
944
|
searchGroups: ({ orgId, groupsSearchRequest }: {
|
|
357
945
|
/**
|
|
358
|
-
* Your organization
|
|
359
|
-
*
|
|
946
|
+
* Your organization has a unique ID. Find this ID in your Atlassian
|
|
947
|
+
* Administration URL or when you create your API key.
|
|
360
948
|
*/
|
|
361
949
|
orgId: string;
|
|
362
950
|
/**
|