Mengkueri ID akun Employee Identity and Access Management (EIAM) berdasarkan ID eksternal.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /v2/{instanceId}/{applicationId}/users/_/actions/getUserIdByExternalId HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| applicationId |
string |
Yes |
ID aplikasi. |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Authorization |
string |
Yes |
Informasi otentikasi. Format: Bearer ${access_token}. Contoh: Bearer ATxxxx. |
Bearer AT8csE2seYxxxxxij |
| body |
object |
No |
Badan permintaan. |
|
| userExternalId |
string |
Yes |
The external ID of the account. |
xxx001 |
| userSourceType |
string |
Yes |
The source type of the account. Valid values:
|
build_in |
| userSourceId |
string |
Yes |
The source ID of the account. If the account was created in IDaaS, its source ID is the ID of the IDaaS instance. If the account was imported, its source ID is the enterprise ID in the source. For example, if the account was imported from DingTalk, its source ID is the corpId value of the enterprise in DingTalk. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| userId |
string |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
Contoh
Respons sukses
JSONformat
{
"userId": "user_d6sbsuumeta4h66ec3il7yxxxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.