You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 867464f
Browse filesBrowse the repository at this point in the historyBrowse files
Slack API Ref Buildbot
committed
Add admin.usergroups methods and new error codes
- Added admin.usergroups.addUsers, create, fetch, removeUsers, update, uploadUsers methods
- Added new error codes: invalid_scopes, static_prompts_configured, invalid_channel_id, accepter_email_not_verified, posting_to_channel_denied, app_cannot_join_channel, cannot_modify_role_admin
- Added permissions schema to admin.workflows.permissions.lookup
- Added connector_resource enum value and minItems/maxItems constraints to canvases methods
- Bumped auth.teams.list rate_limits from t2 to t3
"desc": "Add members to an existing organizational usergroup. This method is only available to Enterprise Grid organizations.",
3
+
"http_method": "POST",
4
+
"scope": {
5
+
"user": [
6
+
"admin.usergroups:write"
7
+
]
8
+
},
9
+
"json_input_supported": true,
10
+
"rate_limits": "t2",
11
+
"args": {
12
+
"type": "object",
13
+
"required": [
14
+
"token",
15
+
"id",
16
+
"users"
17
+
],
18
+
"properties": {
19
+
"token": {
20
+
"type": "string",
21
+
"subtype": "auth",
22
+
"desc": "Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter.",
23
+
"example": "xxxx-xxxxxxxxx-xxxx"
24
+
},
25
+
"id": {
26
+
"desc": "ID of the usergroup to add users to",
27
+
"example": "S0604QSJC",
28
+
"type": "string",
29
+
"subtype": "user_group",
30
+
"schema": "subteam_id"
31
+
},
32
+
"users": {
33
+
"desc": "The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string.",
34
+
"example": "U060R4BJ4,U060RNRCZ",
35
+
"type": "array",
36
+
"maxItems": 15000,
37
+
"items": {
38
+
"schema": "user_id"
39
+
}
40
+
}
41
+
}
42
+
},
43
+
"output": {
44
+
"type": "object",
45
+
"properties": {
46
+
"error": {
47
+
"type": "string",
48
+
"desc": "A string representation of the error type"
49
+
},
50
+
"invalid_users": {
51
+
"type": "array",
52
+
"items": {
53
+
"type": "object",
54
+
"required": [
55
+
"user_id",
56
+
"reason"
57
+
],
58
+
"properties": {
59
+
"user_id": {
60
+
"schema": "user_id"
61
+
},
62
+
"reason": {
63
+
"type": "string",
64
+
"enum": [
65
+
"guest_user",
66
+
"deleted_user",
67
+
"user_not_found",
68
+
"insert_failed",
69
+
"channel_limit_exceeded",
70
+
"multi_workspace_idp_group",
71
+
"usergroup_limit_exceeded"
72
+
]
73
+
}
74
+
}
75
+
}
76
+
}
77
+
}
78
+
},
79
+
"errors": {
80
+
"feature_not_enabled": {
81
+
"desc": "The Admin APIs feature is not enabled for this workspace."
82
+
},
83
+
"invalid_auth": {
84
+
"desc": "The workspace specified is not part of this organization."
85
+
},
86
+
"restricted_action": {
87
+
"desc": "The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM."
88
+
},
89
+
"not_an_enterprise": {
90
+
"desc": "The token passed in does not belong to an Enterprise organization."
91
+
},
92
+
"invalid_usergroup": {
93
+
"desc": "A usergroup with the specified ID does not exist."
94
+
},
95
+
"invalid_users": {
96
+
"desc": "One or more users provided can not be added to the usergroup."
97
+
},
98
+
"user_not_found": {
99
+
"desc": "One or more users provided are invalid or are not a member of the organization."
100
+
},
101
+
"member_count_would_exceed_visible_limit": {
102
+
"desc": "The usergroup is visible and the member count would exceed the limit."
103
+
},
104
+
"cannot_modify_role_admin": {
105
+
"desc": "The user does not have permission to modify the roles admin role."
"description": "Success response. Any users that could not be added are listed in invalid_users, which is omitted when every user is added successfully.",
"desc": "Create a new organizational usergroup. This method is only available to Enterprise Grid organizations.",
3
+
"http_method": "POST",
4
+
"scope": {
5
+
"user": [
6
+
"admin.usergroups:write"
7
+
]
8
+
},
9
+
"json_input_supported": true,
10
+
"rate_limits": "t1",
11
+
"args": {
12
+
"type": "object",
13
+
"required": [
14
+
"token",
15
+
"name"
16
+
],
17
+
"properties": {
18
+
"token": {
19
+
"type": "string",
20
+
"subtype": "auth",
21
+
"desc": "Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter.",
22
+
"example": "xxxx-xxxxxxxxx-xxxx"
23
+
},
24
+
"name": {
25
+
"desc": "Unique name for the usergroup",
26
+
"type": "string"
27
+
},
28
+
"handle": {
29
+
"desc": "Optional handle used to mention the usergroup in channel, must be unique",
30
+
"type": "string"
31
+
},
32
+
"purpose": {
33
+
"desc": "Optional purpose that describes what the usergroup is about",
34
+
"type": "string"
35
+
},
36
+
"is_visible": {
37
+
"desc": "Configure whether or not this usergroup should be visible in the client",
38
+
"example": "true",
39
+
"type": "boolean"
40
+
}
41
+
}
42
+
},
43
+
"output": {
44
+
"type": "object",
45
+
"properties": {
46
+
"error": {
47
+
"type": "string",
48
+
"desc": "A string representation of the error type"
49
+
},
50
+
"subteam": {
51
+
"schema": "subteam"
52
+
}
53
+
}
54
+
},
55
+
"errors": {
56
+
"feature_not_enabled": {
57
+
"desc": "The Admin APIs feature is not enabled for this workspace."
58
+
},
59
+
"invalid_auth": {
60
+
"desc": "The workspace specified is not part of this organization."
61
+
},
62
+
"restricted_action": {
63
+
"desc": "The calling user is not allowed to create usergroups."
64
+
},
65
+
"not_an_enterprise": {
66
+
"desc": "The token passed in does not belong to an Enterprise organization."
67
+
},
68
+
"name_already_exists": {
69
+
"desc": "The name specified is used by another usergroup and cannot be created."
70
+
},
71
+
"handle_already_exists": {
72
+
"desc": "The handle specified is used by another usergroup or entity and cannot be created."
0 commit comments