js-apis-enterprise-device-manager.md 19.0 KB
Newer Older
E
add doc  
ester.zhou 已提交
1 2
# Enterprise Device Management

3
> **NOTE**<br>
E
add doc  
ester.zhou 已提交
4 5 6 7 8 9 10 11 12 13
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.


## Modules to Import

```
import enterpriseDeviceManager from '@ohos.enterpriseDeviceManager';
```


14
## enterpriseDeviceManager.enableAdmin
E
add doc  
ester.zhou 已提交
15

16
enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback\<boolean>): void
E
add doc  
ester.zhou 已提交
17

18
Enables a device administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
E
add doc  
ester.zhou 已提交
19 20

**Required permissions**
E
ester.zhou 已提交
21

E
add doc  
ester.zhou 已提交
22 23 24
ohos.permission.MANAGE_ADMIN

**System capability**
E
ester.zhou 已提交
25

E
add doc  
ester.zhou 已提交
26 27 28 29
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

30 31 32 33 34 35 36
| Name | Type | Mandatory | Description |
| -------- | -------- | -------- | -------- |
| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
| enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. |
| type | [AdminType](#AdminType) | Yes | Type of the device administrator to enable. |
| userId         | number                              | No        | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
| callback | AsyncCallback\<boolean> | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
37 38 39 40 41 42 43 44 45 46 47 48

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
	name: "enterprise name",
	description: "enterprise description"
}
49
enterpriseDeviceManager.enableAdmin(wantTemp, enterpriseInfo, enterpriseDeviceManager.AdminType.ADMIN_TYPE_NORMAL, 100, (error, result) => {
E
add doc  
ester.zhou 已提交
50 51 52 53 54 55 56 57
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result);
});
```

58
## enterpriseDeviceManager.enableAdmin
E
add doc  
ester.zhou 已提交
59

60
enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType): Promise\<boolean>
E
add doc  
ester.zhou 已提交
61

62
Enables a device administrator application based on the specified bundle name and class name. This API uses a promise to return the result.
E
add doc  
ester.zhou 已提交
63 64

**Required permissions**
E
ester.zhou 已提交
65

E
add doc  
ester.zhou 已提交
66 67 68
ohos.permission.MANAGE_ADMIN

**System capability**
E
ester.zhou 已提交
69

E
add doc  
ester.zhou 已提交
70 71 72 73
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

74 75 76 77 78 79
| Name | Type | Mandatory | Description |
| -------------- | ---------------------------------------------- | ---- | ------------------------ |
| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
| enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. |
| type | [AdminType](#AdminType) | Yes | Type of the device administrator to enable. |
| userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
E
add doc  
ester.zhou 已提交
80 81 82

**Return value**

83 84 85
 | Type | Description |
 | ----------------- | --------------------------- |
 | Promise\<boolean> | Promise used to return the result. |
E
add doc  
ester.zhou 已提交
86 87 88 89 90 91 92 93 94 95 96 97

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
	name: "enterprise name",
	description: "enterprise description"
}
98
enterpriseDeviceManager.enableAdmin(wantTemp, enterpriseInfo, enterpriseDeviceManager.AdminType.ADMIN_TYPE_NORMAL, 100)
E
add doc  
ester.zhou 已提交
99 100 101 102 103 104 105
.then((result) => {
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

106
## enterpriseDeviceManager.disableAdmin
E
add doc  
ester.zhou 已提交
107

108
disableAdmin(admin: Want, callback: AsyncCallback\<boolean>): void
E
add doc  
ester.zhou 已提交
109

110
Disables a device common administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
E
add doc  
ester.zhou 已提交
111 112

**Required permissions**
E
ester.zhou 已提交
113

E
add doc  
ester.zhou 已提交
114 115 116
ohos.permission.MANAGE_ADMIN

**System capability**
E
ester.zhou 已提交
117

E
add doc  
ester.zhou 已提交
118 119 120 121
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

122 123 124 125 126
| Name | Type | Mandatory | Description |
| -------- | ---------------------------------------------- | ---- | ------------------------------ |
| admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application. |
| userId   | number                              | No        | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
| callback | AsyncCallback\<boolean> | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
127 128 129 130 131 132 133 134

**Example**

```
let wantTemp = {
	bundleName: elementName.bundleName,
	abilityName: elementName.abilityName,
};
135
enterpriseDeviceManager.disableAdmin(wantTemp, 100, (error, result) => {
E
add doc  
ester.zhou 已提交
136 137 138 139 140 141 142 143 144 145
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result);
});
```



146
## enterpriseDeviceManager.disableAdmin
E
add doc  
ester.zhou 已提交
147

148
disableAdmin(admin: Want): Promise\<boolean>
E
add doc  
ester.zhou 已提交
149

150
Disables a device common administrator application based on the specified bundle name and class name. This API uses a promise to return the result.
E
add doc  
ester.zhou 已提交
151 152

**Required permissions**
E
ester.zhou 已提交
153

E
add doc  
ester.zhou 已提交
154 155 156
ohos.permission.MANAGE_ADMIN

**System capability**
E
ester.zhou 已提交
157

E
add doc  
ester.zhou 已提交
158 159 160 161
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

162 163 164 165
| Name | Type | Mandatory | Description |
| ------ | ---------------------------------------------- | ---- | ------------------ |
| admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application. |
| userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
E
add doc  
ester.zhou 已提交
166 167 168

**Return value**

169 170 171
 | Type | Description |
 | ----------------- | --------------------------- |
 | Promise\<boolean> | Promise used to return the result. |
E
add doc  
ester.zhou 已提交
172 173 174 175 176 177 178 179

**Example**

```
let wantTemp = {
	bundleName: "bundleName",
	abilityName: "abilityName",
};
180
enterpriseDeviceManager.disableAdmin(wantTemp, 100).then((result) => {
E
add doc  
ester.zhou 已提交
181 182 183 184 185 186
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

187
## enterpriseDeviceManager.disableSuperAdmin
E
add doc  
ester.zhou 已提交
188

189
disableSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void
E
add doc  
ester.zhou 已提交
190

191
Disables a device super administrator application based on the specified bundle name. This API uses an asynchronous callback to return the result.
E
add doc  
ester.zhou 已提交
192 193

**System capability**
E
ester.zhou 已提交
194

E
add doc  
ester.zhou 已提交
195 196 197 198
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

199 200 201 202
 | Name | Type | Mandatory | Description |
 | ---------- | ----------------------- | ---- | ------------------------------ |
 | bundleName | String | Yes | Bundle name of a device super administrator application. |
 | callback | AsyncCallback\<boolean> | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
203 204 205 206 207

**Example**

```
let bundleName = "com.example.myapplication";
208
enterpriseDeviceManager.disableSuperAdmin(bundleName, (error, result) => {
E
add doc  
ester.zhou 已提交
209 210 211 212 213 214 215 216
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result);
});
```

217
## enterpriseDeviceManager.disableSuperAdmin
E
add doc  
ester.zhou 已提交
218

219
disableSuperAdmin(bundleName: String): Promise\<boolean>
E
add doc  
ester.zhou 已提交
220

221
Disables a device super administrator application based on the specified bundle name. This API uses a promise to return the result.
E
add doc  
ester.zhou 已提交
222 223

**System capability**
E
ester.zhou 已提交
224

E
add doc  
ester.zhou 已提交
225 226 227 228
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

229 230 231
 | Name | Type | Mandatory | Description |
 | ---------- | ------ | ---- | ------------------------ |
 | bundleName | String | Yes | Bundle name of a device super administrator application. |
E
add doc  
ester.zhou 已提交
232 233 234

**Return value**

235 236 237
 | Type | Description |
 | ----------------- | --------------------------- |
 | Promise\<boolean> | Promise used to return the result. |
E
add doc  
ester.zhou 已提交
238 239 240 241 242

**Example**

```
let bundleName = "com.example.myapplication";
243
enterpriseDeviceManager.disableSuperAdmin(bundleName).then((result) => {
E
add doc  
ester.zhou 已提交
244 245 246 247 248 249
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

250
## enterpriseDeviceManager.isAdminEnabled
E
add doc  
ester.zhou 已提交
251

252
isAdminEnabled(admin: Want, callback: AsyncCallback\<boolean>): void
E
add doc  
ester.zhou 已提交
253

254
Checks whether a device administrator application is enabled based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
E
add doc  
ester.zhou 已提交
255 256

**System capability**
E
ester.zhou 已提交
257

E
add doc  
ester.zhou 已提交
258 259 260 261
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

262 263 264 265 266
| Name | Type | Mandatory | Description |
| -------- | ---------------------------------------------- | ---- | -------------------------------- |
| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
| userId   | number                              | No        | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
| callback | AsyncCallback\<boolean> | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
267 268 269 270 271 272 273 274

**Example**

```
let wantTemp = {
	bundleName: elementName.bundleName,
	abilityName: elementName.abilityName,
};
275
enterpriseDeviceManager.isAdminEnabled(wantTemp, 100, (error, result) => {
E
add doc  
ester.zhou 已提交
276 277 278 279 280 281 282 283 284 285
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result);
});
```



286
## enterpriseDeviceManager.isAdminEnabled
E
add doc  
ester.zhou 已提交
287

288
isAdminEnabled(admin: Want): Promise\<boolean>
E
add doc  
ester.zhou 已提交
289

290
Checks whether a device administrator application is enabled based on the specified bundle name and class name. This API uses a promise to return the result.
E
add doc  
ester.zhou 已提交
291 292

**System capability**
E
ester.zhou 已提交
293

E
add doc  
ester.zhou 已提交
294 295 296 297
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

298 299 300 301
| Name | Type | Mandatory | Description |
| ------ | ---------------------------------------------- | ---- | -------------- |
| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
| userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. |
E
add doc  
ester.zhou 已提交
302 303 304

**Return value**

305 306 307
 | Type | Description |
 | ----------------- | ------------------------------- |
 | Promise\<boolean> | Promise used to return the result. |
E
add doc  
ester.zhou 已提交
308 309 310 311 312 313 314 315

**Example**

```
let wantTemp = {
	bundleName: "bundleName",
	abilityName: "abilityName",
};
316
enterpriseDeviceManager.isAdminEnabled(wantTemp, 100).then((result) => {
E
add doc  
ester.zhou 已提交
317 318 319 320 321 322 323 324 325 326
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

## enterpriseDeviceManager.isSuperAdmin

isSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void

327
Checks whether a device super administrator application is enabled based on the specified bundle name. This API uses an asynchronous callback to return the result.
E
add doc  
ester.zhou 已提交
328 329

**System capability**
E
ester.zhou 已提交
330

E
add doc  
ester.zhou 已提交
331 332 333 334
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

335 336 337 338
 | Name | Type | Mandatory | Description |
 | ---------- | ----------------------- | ---- | -------------------------------- |
 | bundleName | String | Yes | Bundle name of a device super administrator application. |
 | callback | AsyncCallback\<boolean> | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358

**Example**

```
let bundleName = "com.example.myapplication";
enterpriseDeviceManager.isSuperAdmin(bundleName, (error, result) => {
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result);
});
```



## enterpriseDeviceManager.isSuperAdmin

isSuperAdmin(bundleName: String): Promise\<boolean>

359
Checks whether a device super administrator application is enabled based on the specified bundle name. This API uses a promise to return the result.
E
add doc  
ester.zhou 已提交
360 361

**System capability**
E
ester.zhou 已提交
362

E
add doc  
ester.zhou 已提交
363 364 365 366
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

367 368 369
 | Name | Type | Mandatory | Description |
 | ---------- | ------ | ---- | ------------------ |
 | bundleName | String | Yes | Bundle name of a device super administrator application. |
E
add doc  
ester.zhou 已提交
370 371 372

**Return value**

373 374 375
 | Type | Description |
 | ----------------- | ------------------------------- |
 | Promise\<boolean> | Promise used to return the result. |
E
add doc  
ester.zhou 已提交
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394

**Example**

```
let bundleName = "com.example.myapplication";
enterpriseDeviceManager.isSuperAdmin(bundleName).then((result) => {
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

## enterpriseDeviceManager.getDeviceSettingsManager

getDeviceSettingsManager(callback: AsyncCallback&lt;DeviceSettingsManager&gt;): void

Obtains a **DeviceSettingsManager** object. This API uses an asynchronous callback to return the result.

**System capability**
E
ester.zhou 已提交
395

E
add doc  
ester.zhou 已提交
396 397 398 399
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

400 401 402
 | Name | Type | Mandatory | Description |
 | -------- | -------- | -------- | -------- |
 | callback | AsyncCallback<DeviceSettingsManager&gt; | Yes | Callback used to return the **DeviceSettingsManager** object obtained. |
E
add doc  
ester.zhou 已提交
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433

**Example**

```
let wantTemp = {
	bundleName: "bundleName",
	abilityName: "abilityName",
};
enterpriseDeviceManager.getDeviceSettingsManager((error, mgr) => {
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    mgr.setDateTime(wantTemp, 1526003846000, (error, value) => { 
        if (error != null) {
            console.log(error);
        } else {
            console.log(value);
        }
    });
});
```


## enterpriseDeviceManager.getDeviceSettingsManager

getDeviceSettingsManager(): Promise&lt;DeviceSettingsManager&gt;

Obtains a **DeviceSettingsManager** object. This API uses a promise to return the result.

**System capability**
E
ester.zhou 已提交
434

E
add doc  
ester.zhou 已提交
435 436 437 438
SystemCapability.Customation.EnterpriseDeviceManager

**Return value**

439 440 441
 | Type | Description |
 | -------- | -------- |
 | Promise&lt;DeviceSettingsManager&gt; | Promise used to return the **DeviceSettingsManager** object obtained. |
E
add doc  
ester.zhou 已提交
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467

**Example**

```
let wantTemp = {
	bundleName: "bundleName",
	abilityName: "abilityName",
};
mgr.getDeviceSettingsManager().then((mgr) => {
    mgr.setDateTime(wantTemp, 1526003846000).then((value) => {
        console.log(value);
    }).catch((error) => {
        console.log(error);
    })
}).catch((error) => {
    console.log(error);
})
```

## enterpriseDeviceManager.setEnterpriseInfo

setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback&lt;boolean&gt;): void

Sets the enterprise information of a device administrator application. This API uses an asynchronous callback to return the result.

**System capability**
E
ester.zhou 已提交
468

E
add doc  
ester.zhou 已提交
469 470 471 472
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

473 474 475 476 477
 | Name | Type | Mandatory | Description |
 | -------------- | ---------------------------------------------- | ---- | ------------------------------------ |
 | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
 | enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. |
 | callback | AsyncCallback\<boolean&gt; | Yes | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
	name: "enterprise name",
	description: "enterprise description"
}
enterpriseDeviceManager.setEnterpriseInfo(wantTemp, enterpriseInfo)
.then((result) => {
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```


## enterpriseDeviceManager.setEnterpriseInfo

setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise&lt;boolean&gt;

Sets the enterprise information of a device administrator application. This API uses a promise to return the result.

**System capability**
E
ester.zhou 已提交
506

E
add doc  
ester.zhou 已提交
507 508 509 510
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

511 512 513 514
 | Name | Type | Mandatory | Description |
 | -------------- | ---------------------------------------------- | ---- | ------------------------ |
 | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
 | enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. |
E
add doc  
ester.zhou 已提交
515 516 517

**Return value**

518 519 520
 | Type | Description |
 | ------------------ | ----------------------------------- |
 | Promise\<boolean>; | Callback used to return the result. |
E
add doc  
ester.zhou 已提交
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
	name: "enterprise name",
	description: "enterprise description"
}
enterpriseDeviceManager.setEnterpriseInfo(wantTemp, enterpriseInfo)
.then((result) => {
	console.log(result);
}).catch(error => {
	console.log("error occurs" + error);
});
```

## enterpriseDeviceManager.getEnterpriseInfo

getEnterpriseInfo(admin: Want, callback: AsyncCallback&lt;EnterpriseInfo&gt;): void

Obtains the enterprise information of a device administrator application. This API uses an asynchronous callback to return the result.

**System capability**
E
ester.zhou 已提交
548

E
add doc  
ester.zhou 已提交
549 550 551 552
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

553 554 555 556
 | Name | Type  | Mandatory | Description |
 | -------- | ------------------------------------------------------ | ---- | ---------------------------------------- |
 | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
 | callback | AsyncCallback&lt;[EnterpriseInfo](#EnterpriseInfo)&gt; | Yes | Callback used to return the enterprise information of the device administrator application. |
E
add doc  
ester.zhou 已提交
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
enterpriseDeviceManager.getEnterpriseInfo(wantTemp, (error, result) => {
    if (error != null) {
        console.log("error occurs" + error);
        return; 
    }
    console.log(result.name);
	console.log(result.description);
});
```


## enterpriseDeviceManager.getEnterpriseInfo

578
getEnterpriseInfo(admin: Want): Promise&lt;EnterpriseInfo&gt;
E
add doc  
ester.zhou 已提交
579 580 581 582

Obtains the enterprise information of a device administrator application. This API uses a promise to return the result.

**System capability**
E
ester.zhou 已提交
583

E
add doc  
ester.zhou 已提交
584 585 586 587
SystemCapability.Customation.EnterpriseDeviceManager

**Parameters**

588 589 590
 | Name | Type | Mandatory | Description |
 | ------ | ---------------------------------------------- | ---- | -------------- |
 | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. |
E
add doc  
ester.zhou 已提交
591 592 593

**Return value**

594 595 596
 | Type | Description |
 | ------------------------------------------------ | ------------------------------------------- |
 | Promise&lt;[EnterpriseInfo](#EnterpriseInfo)&gt; | Promise used to return the enterprise information of the device administrator application. |
E
add doc  
ester.zhou 已提交
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616

**Example**

```
let wantTemp = {
	bundleName: "com.example.myapplication",
	abilityName: "com.example.myapplication.MainAbility",
};
enterpriseDeviceManager.getEnterpriseInfo(wantTemp).then((result) => {
	console.log(result.name);
	console.log(result.description);
}).catch(error => {
	console.log("error occurs" + error);
});
```

## EnterpriseInfo

Describes the enterprise information of a device administrator application.

E
ester.zhou 已提交
617 618
**System capability**

E
add doc  
ester.zhou 已提交
619
SystemCapability.Customation.EnterpriseDeviceManager
E
ester.zhou 已提交
620

621 622 623 624
 | Name | Readable/Writable | Type | Mandatory | Description |
 | ----------- | -------- | ------ | ---- | ---------------------------------- |
 | name | Read only | string | Yes | Name of the enterprise to which the device administrator application belongs. |
 | description | Read only | string | Yes | Description of the enterprise to which the device administrator application belongs. |
E
add doc  
ester.zhou 已提交
625 626 627 628 629 630


## AdminType

Enumerates the administrator types of the device administrator application.

E
ester.zhou 已提交
631 632
**System capability**

E
add doc  
ester.zhou 已提交
633
SystemCapability.Customation.EnterpriseDeviceManager
E
ester.zhou 已提交
634

635 636 637 638
 | Name | Default Value | Description |
 | -------- | -------- | -------- |
 | ADMIN_TYPE_NORMAL | 0x00 | Common administrator. |
 | ADMIN_TYPE_SUPER | 0x01 | Super administrator. |