Skip to content

Atlassian: Create group

Atlassian groups.createGroup: arguments, response, policy and SDK examples.

← Groups operations · Get started

Operation atlassian.creategroup

Provider route: POST /{cloudId}/rest/api/3/group. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["groups"]["createGroup"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.groups.createGroup(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.groups.create_group(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
bodyModelRequired within parentExpand Create group — request body — body

Referenced models: Create group — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get group — response body

Referenced models: Get group — response body

Create group — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
namestringRequired within parentThe name of the group.
Get group — response body
FieldTypePresenceDescription and constraints
$objectRoot
expandJSONOptional
expand (anyOf 1)stringAlternativeExpand options that include additional group details in the response.
Read only: true
expand (anyOf 2)nullAlternative
groupIdJSONOptional
groupId (anyOf 1)JSONAlternative
groupId (anyOf 1) (anyOf 1)stringAlternativeThe ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
groupId (anyOf 1) (anyOf 2)nullAlternative
groupId (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of group.
name (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL for these group details.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
usersJSONOptional
users (anyOf 1)ModelAlternativeExpand Get group — response body — users end-index, items, max-results, size, start-index
A paginated list of the users that are members of the group. A maximum of 50 users is returned in the list, to access additional users append `[start-index:end-index]` to the expand request. For example, to access the next 50 users, use`?expand=users[51:100]`.
Read only: true
users (anyOf 2)nullAlternative

Referenced models: Get group — response body — users end-index, items, max-results, size, start-index

Get group — response body — users end-index, items, max-results, size, start-index
FieldTypePresenceDescription and constraints
$objectRootA paged list. To access additional details append `[start-index:end-index]` to the expand request. For example, `?expand=sharedUsers[10:40]` returns a list starting at item 10 and finishing at item 40.
end-indexJSONOptional
end-index (anyOf 1)JSONAlternative
end-index (anyOf 1) (anyOf 1)integerAlternativeThe index of the last item returned on the page.
Format: int32
Read only: true
end-index (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
end-index (anyOf 2)nullAlternative
itemsJSONOptional
items (anyOf 1)arrayAlternativeThe list of items.
Read only: true
items (anyOf 1)[]ModelEach itemExpand Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone
items (anyOf 2)nullAlternative
max-resultsJSONOptional
max-results (anyOf 1)JSONAlternative
max-results (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of results that could be on the page.
Format: int32
Read only: true
max-results (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
max-results (anyOf 2)nullAlternative
sizeJSONOptional
size (anyOf 1)JSONAlternative
size (anyOf 1) (anyOf 1)integerAlternativeThe number of items on the page.
Format: int32
Read only: true
size (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
size (anyOf 2)nullAlternative
start-indexJSONOptional
start-index (anyOf 1)JSONAlternative
start-index (anyOf 1) (anyOf 1)integerAlternativeThe index of the first item returned on the page.
Format: int32
Read only: true
start-index (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
start-index (anyOf 2)nullAlternative

Referenced models: Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone

Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone
FieldTypePresenceDescription and constraints
$objectRootUser details permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:

* User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank).
* User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values.
* User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
accountIdJSONOptional
accountId (anyOf 1)stringAlternativeThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.
Maximum length: 128
accountId (anyOf 2)nullAlternative
accountTypeJSONOptional
accountType (anyOf 1)stringAlternativeThe type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user)
Read only: true
accountType (anyOf 2)nullAlternative
activeJSONOptional
active (anyOf 1)booleanAlternativeWhether the user is active.
Read only: true
active (anyOf 2)nullAlternative
avatarUrlsJSONOptional
avatarUrls (anyOf 1)ModelAlternativeExpand Get user — response body — avatar Urls 16x16, 24x24, 32x32, 48x48
The avatars of the user.
Read only: true
avatarUrls (anyOf 2)nullAlternative
displayNameJSONOptional
displayName (anyOf 1)stringAlternativeThe display name of the user. Depending on the user’s privacy settings, this may return an alternative value.
Read only: true
displayName (anyOf 2)nullAlternative
emailAddressJSONOptional
emailAddress (anyOf 1)stringAlternativeThe email address of the user. Depending on the user’s privacy settings, this may be returned as null.
Read only: true
emailAddress (anyOf 2)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeThis property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
Read only: true
key (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThis property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
Read only: true
name (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL of the user.
Read only: true
self (anyOf 2)nullAlternative
timeZoneJSONOptional
timeZone (anyOf 1)stringAlternativeThe time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null.
Read only: true
timeZone (anyOf 2)nullAlternative

Referenced models: Get user — response body — avatar Urls 16x16, 24x24, 32x32, 48x48

Get user — response body — avatar Urls 16x16, 24x24, 32x32, 48x48
FieldTypePresenceDescription and constraints
$objectRoot
16x16JSONOptional
16x16 (anyOf 1)stringAlternativeThe URL of the item's 16x16 pixel avatar.
Format: uri
16x16 (anyOf 2)nullAlternative
24x24JSONOptional
24x24 (anyOf 1)stringAlternativeThe URL of the item's 24x24 pixel avatar.
Format: uri
24x24 (anyOf 2)nullAlternative
32x32JSONOptional
32x32 (anyOf 1)stringAlternativeThe URL of the item's 32x32 pixel avatar.
Format: uri
32x32 (anyOf 2)nullAlternative
48x48JSONOptional
48x48 (anyOf 1)stringAlternativeThe URL of the item's 48x48 pixel avatar.
Format: uri
48x48 (anyOf 2)nullAlternative

SDK function policy ID: atlassian.creategroup. Catalog operation: creategroup. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["manage:jira-configuration"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.