Skip to content

Manage AD Users using GUID with the KopiCloud AD API»

KopiCloud_AD_API

Manage AD Users using GUID in Microsoft Active Directory using the KopiCloud AD API


Show AD User Details using GUID»

GET /api/ADUserGuid

Parameters

Name Type Description Mandatory
UserGuid string AD User GUID Yes
ShowFields string Recursive Search No
Auth-Token string Bearer or Basic Authentication Token Yes

Return Schema

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "output": "string",
  "result": {
    "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "username": "string",
    "firstName": "string",
    "lastName": "string",
    "displayName": "string",
    "description": "string",
    "emailAddress": "string",
    "department": "string",
    "office": "string",
    "company": "string",
    "samUsername": "string",
    "initials": "string",
    "ouPath": "string",
    "changePasswordNextLogon": true,
    "passwordNeverExpired": true,
    "jobTitle": "string",
    "manager": "string",
    "streetAddress": "string",
    "streetPoBox": "string",
    "city": "string",
    "state": "string",
    "postalCode": "string",
    "country": "string",
    "officePhone": "string",
    "homePhone": "string",
    "mobilePhone": "string",
    "profilePath": "string",
    "profileLogonScript": "string",
    "homeFolderPath": "string",
    "homeFolderDrive": "string",
    "homeFolderDirectory": "string",
    "rdsProfilePath": "string",
    "rdsHomeFolderPath": "string",
    "rdsHomeFolderDrive": "string",
    "rdsConnectDrive": true,
    "rdsAllowLogon": true,
    "_IncludeAllProperties": true,
    "_ShowFields": [
      "string"
    ]
  }
}

Update AD User using GUID»

PUT /api/ADUserGuid

Parameters

Name Type Description Mandatory
UserGuid string AD User GUID Yes
Password string User Password No
FirstName string AD User First Name No
Initials string AD User Initials No
LastName string AD User LastName No
DisplayName string User DisplayName No
Description string User Description No
EmailAddress string User Email Address No
Department string User Department No
Office string User Office No
Company string User Company No
OUPath string Organization Unit DN Path No
ChangePasswordNextLogon boolean User Must Change Password at Next Logon (Default = true) No
PasswordNeverExpired boolean Password never expire. (Default = false) No
JobTitle string AD User Job Title No
Manager string AD User Manager No
Street string AD User Street No
POBox string AD User Po Box No
City string AD User City No
State string AD User State No
ZipCode string AD User Zip Code No
Country string AD User Country No
OfficePhone string AD User Office Phone No
HomePhone string AD User Home Phone No
MobilePhone string AD User Mobile Phone No
ProfilePath string AD User Profile Path No
ProfileLogonScript string AD User Profile Logon Script No
HomeFolderPath string AD User Home Folder Path No
HomeFolderDrive string AD User Home Folde rDrive No
HomeFolderDirectory string AD User Home Folder Directory No
RdsProfilePath string AD User Rds Profile Path No
RdsHomeFolderPath string AD User Rds Home Folder Path No
RdsHomeFolderDrive string AD User Rds Home Folder Drive No
RdsConnectDrive boolean AD User Rds Connect Drive (Default = false) No
RdsAllowLogon string AD User Allow RDS Logon (Default = true) No
ShowFields string User Fields to show. Optional argument: comma-separated string with the name of the fields you want to be returned No
Auth-Token string Bearer or Basic Authentication Token Yes

Return Schema

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "output": "string",
  "result": {
    "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "username": "string",
    "firstName": "string",
    "lastName": "string",
    "displayName": "string",
    "description": "string",
    "emailAddress": "string",
    "department": "string",
    "office": "string",
    "company": "string",
    "samUsername": "string",
    "initials": "string",
    "ouPath": "string",
    "changePasswordNextLogon": true,
    "passwordNeverExpired": true,
    "jobTitle": "string",
    "manager": "string",
    "streetAddress": "string",
    "streetPoBox": "string",
    "city": "string",
    "state": "string",
    "postalCode": "string",
    "country": "string",
    "officePhone": "string",
    "homePhone": "string",
    "mobilePhone": "string",
    "profilePath": "string",
    "profileLogonScript": "string",
    "homeFolderPath": "string",
    "homeFolderDrive": "string",
    "homeFolderDirectory": "string",
    "rdsProfilePath": "string",
    "rdsHomeFolderPath": "string",
    "rdsHomeFolderDrive": "string",
    "rdsConnectDrive": true,
    "rdsAllowLogon": true,
    "_IncludeAllProperties": true,
    "_ShowFields": [
      "string"
    ]
  }
}

Delete AD User using GUID»

DELETE /api/ADUserGuid

Parameters

Name Type Description Mandatory
UserGuid string AD User GUID Yes
ShowFields string User Fields to show. Optional argument: comma-separated string with the name of the fields you want to be returned No
Auth-Token string Bearer or Basic Authentication Token Yes

Return Schema

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "output": "string",
  "result": {
    "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "username": "string",
    "firstName": "string",
    "lastName": "string",
    "displayName": "string",
    "description": "string",
    "emailAddress": "string",
    "department": "string",
    "office": "string",
    "company": "string",
    "samUsername": "string",
    "initials": "string",
    "ouPath": "string",
    "changePasswordNextLogon": true,
    "passwordNeverExpired": true,
    "jobTitle": "string",
    "manager": "string",
    "streetAddress": "string",
    "streetPoBox": "string",
    "city": "string",
    "state": "string",
    "postalCode": "string",
    "country": "string",
    "officePhone": "string",
    "homePhone": "string",
    "mobilePhone": "string",
    "profilePath": "string",
    "profileLogonScript": "string",
    "homeFolderPath": "string",
    "homeFolderDrive": "string",
    "homeFolderDirectory": "string",
    "rdsProfilePath": "string",
    "rdsHomeFolderPath": "string",
    "rdsHomeFolderDrive": "string",
    "rdsConnectDrive": true,
    "rdsAllowLogon": true,
    "_IncludeAllProperties": true,
    "_ShowFields": [
      "string"
    ]
  }
}