HarmonyOS: HarmonyOS 6.0.0 Release or later
DevEco Studio: DevEco Studio 6.0.0 Release or later
HarmonyOS SDK: HarmonyOS 6.0.0 Release SDK or later
Before you start developing an app, configure your project and app information in AppGallery Connect, including:
Register a HUAWEI ID and complete enterprise identity verification.
Create a project. Under the project, create a HarmonyOS app.
Apply for an enterprise MDM app release certificate and an enterprise MDM app release profile.
Before requesting permissions, ensure that the basic principles for using permissions are met. Then, declare required permissions under requestPermissions in the module.json5 configuration file of the module of the project.
Table 1 Permission description
| App Capability | Scenario | Required Permission |
|---|---|---|
| Inter-workspace data transfer | Set and obtain review information using the inter-workspace data transfer APIs. | ohos.permission.ENTERPRISE_FILE_TRANSFER_AUDIT_POLICY_MANAGEMENT |
| Workspace management | Deliver the workspace lifecycle management policy. | ohos.permission.ENTERPRISE_MANAGE_LOCAL_PUBLICSPACES |
| Workspace management | Query workspace information. | ohos.permission.QUERY_LOCAL_WORKSPACES |
| Workspace management | Subscribe to workspace events. | ohos.permission.ENTERPRISE_WORKSPACES_EVENT_SUBSCRIBE |
Example:
"requestPermissions": [
{
"name": "ohos.permission.ENTERPRISE_FILE_TRANSFER_AUDIT_POLICY_MANAGEMENT"
},
{
"name": "ohos.permission.ENTERPRISE_MANAGE_LOCAL_PUBLICSPACES"
},
{
"name": "ohos.permission.QUERY_LOCAL_WORKSPACES"
},
{
"name": "ohos.permission.ENTERPRISE_WORKSPACES_EVENT_SUBSCRIBE"
}
]