In AppGallery Connect, go to Apps and atomic services, and select the atomic service for which you want to request a scope. In the navigation pane on the left, choose Basic services > Project settings. On the displayed General information tab page, obtain the client ID and app ID of the atomic service in the App information area.

If the client ID and app ID obtained in the previous section are the same, it is unnecessary to configure the client ID. Otherwise, you need to configure the client ID as instructed in the next section.
In the module.json5 file of the entry module in the project, add the metadata section. Set name to client_id and value to the client ID obtained in the previous section.
"module": {
"name": "<name>",
"type": "entry",
"description": "<description>",
"mainElement": "<mainElement>",
"deviceTypes": [],
"pages": "<pages>",
"abilities": [],
"metadata": [ // The configuration is as follows.
{
"name": "client_id",
"value": "xxxxx" // Assign the previously obtained client ID to the value field. Make sure not to set value using any other method.
}
]
}