Skip to content

Query Organization by Organization Code ​

Permissions ​

The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, see API Permissions.

Permission CodeDescription
org_readRead permission for organization management APIs
allRead/Write permission for all APIs
readPermission for all read APIs

Request Description ​

Request Headers ​

Parameter NameChinese NameRequiredTypeDescription
AuthorizationAuthorizationYesStringFormat: Bearer {access_token}
Content-TypeContent TypeYesStringFixed value: application/json; charset=utf-8

Request Example ​

None

Request Parameters ​

Parameter NameChinese NameRequiredTypeDescription
org_codeOrganization codeYesStringOrganization code

Response Example ​

Success Example ​

HTTP/1.1 200 OK

json
{ 
	"org_id": "20220412142914549-1E50-B49C521A4", 
	"parent_id": "20220412105608948-3B83-D566C6D94", 
	"name": "Test Organization 333", 
	"category": "department", 
	"org_code": "TestOrg2",
	"sequence": 5,
	"disabled": false,
	"created_at": "2022-08-01 10:00:00.111",
	"updated_at": "2024-08-30 14:37:24.610",
	"extension": {
		"uid": "123"
	}
}

Error Example ​

HTTP/1.1 400 Bad Request

json
{ 
	"error_code": "ORG.0001", 
	"error_msg": "Organization does not exist" 
}

Response Parameters ​

Parameter NameChinese NameTypeDescription
org_idOrganization IDStringOrganization ID
org_codeOrganization codeStringOrganization code
nameOrganization nameStringOrganization name
parent_idParent node IDStringParent node ID
categoryOrganization typeStringOrganization type
sequenceDisplay sequenceintDisplay sequence
disabledWhether disabledBooleanWhether disabled
created_atOrganization creation timeStringOrganization creation time
updated_atOrganization modification timeStringOrganization modification time
extensionExtension attributesMapExtension attributes; extended attributes need to be defined in the enterprise

Error Codes ​

Status CodeError CodeChinese Error MessageEnglish Error MessageResolution
400ORG.0001组织不存在Organization does not existPlease check whether the corresponding organization exists

BambooCloud IDaaS Open Platform