Each Smart Access Gateway (SAG) app instance is assigned an enterprise code. After you create client accounts on an SAG app instance, users can log on to the SAG app with the username and password of their client account and the enterprise code. This topic describes how to manage enterprise codes.
Background information
An enterprise code is five characters in length and consists of letters and digits. Enterprise codes are classified into default enterprise codes and custom enterprise codes. Their differences are:
Default enterprise code: The system automatically generates a globally unique default enterprise code for each Alibaba Cloud account.
Each SAG app instance is assigned a default enterprise code.
Custom enterprise code: You can create custom enterprise codes manually. After they are created, they are also globally unique.
You can attach a custom enterprise code to an SAG app instance. A custom enterprise code has a higher priority than a default enterprise code.
You can set a custom enterprise code as the default enterprise code. After you do this, the previous default enterprise code becomes a custom enterprise code.
After you change the default enterprise code of an SAG app instance, all SAG APP instances purchased after this change are assigned a new default enterprise code. The default enterprise codes of existing SAG app instances remain unchanged. SAG lets you change the enterprise code of existing SAG app instances to a new default enterprise code.
Create a custom enterprise code
- Log on to the SAG console.
- In the left-side navigation pane, choose .
On the Enterprise Codes page, click Create Enterprise Code.
In the Create Enterprise Code dialog box, enter an enterprise code and click OK.
The enterprise code must be five characters in length and consist of letters and digits. The enterprise code must be globally unique.
Change the default enterprise code
SAG automatically assigns a default enterprise code to each Alibaba Cloud account. You can create custom enterprise codes and change the default enterprise code to a custom enterprise code. After you change the default enterprise code of an SAG app instance, all SAG app instances purchased after this change are assigned new default enterprise codes.
Before you change the default enterprise code, make sure that you have created a custom enterprise code. For more information, see Create a custom enterprise code.
- Log on to the SAG console.
- In the left-side navigation pane, choose .
On the Enterprise Code Management page, find the target enterprise code and click Set As Default in the Actions column.
In the Set Default Enterprise Code message, confirm the enterprise code and click OK.
Change the enterprise code of an SAG app instance
SAG assigns a default enterprise code to each SAG app instance. You can change the enterprise code of a specified SAG app instance.
- Log on to the SAG console.
- In the left-side navigation pane, choose .
On the SAG App Instances page, find the target instance and in the Actions column, choose .
In the Change Enterprise Code dialog box, select one of the following options to change the enterprise code and click OK:
Existing Enterprise Code: Select an enterprise code that you have created.
Create Enterprise Code: Enter a new enterprise code. The system creates the enterprise code and automatically attaches it to the SAG app instance.
The enterprise code must be five characters in length and must contain letters and digits. Each enterprise code must be globally unique.
Delete an enterprise code
Before you delete an enterprise code, take note of the following:
You cannot delete the default enterprise code.
To delete a default enterprise code, set a custom enterprise as the new default enterprise code. The default enterprise code becomes a custom enterprise code. Then, you can delete it. For more information, see Change the default enterprise code.
You cannot delete an enterprise code that is attached to an SAG app instance.
To delete an enterprise code that is associated with an SAG app instance, you must associate the SAG app instance with another enterprise code. Then, you can delete the enterprise code. For more information, see Change the enterprise code of an SAG app instance.
- Log on to the SAG console.
- In the left-side navigation pane, choose .
On the Enterprise Codes page, find the target enterprise code and click Remove in the Actions column.
In the Delete Enterprise Code message, confirm the enterprise code and click OK.
> Change Enterprise Code