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 codes: SAG automatically assigns a default enterprise code to each Alibaba Cloud account. Default enterprise codes are globally unique.

    Each SAG app instance is assigned a default enterprise code.

  • Custom enterprise codes: You can create custom enterprise codes. Custom enterprise codes must be globally unique.
    • You can associate an SAG app instance with a custom enterprise code. 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 a custom enterprise code is set as the default enterprise code, 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 allows you to change the enterprise code of existing SAG app instances to a new default enterprise code.

Create a custom enterprise code

  1. Log on to the SAG console.
  2. In the left-side navigation pane, choose Smart Access Gateway APP > Enterprise Codes.
  3. On the Enterprise Codes page, click Create Enterprise Code.
  4. In the Create Enterprise Code dialog box, enter an enterprise code and click OK.
    The enterprise code must be five characters in length and must contain letters and digits. Each 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.

  1. Log on to the SAG console.
  2. In the left-side navigation pane, choose Smart Access Gateway APP > Enterprise Codes.
  3. On the Enterprise Codes page, find the enterprise code that you want to manage and choose More > Set as Default.
  4. 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.

  1. Log on to the SAG console.
  2. In the left-side navigation pane, choose Smart Access Gateway App > SAG App Instances.
  3. On the SAG App Instances page, find the instance that you want to manage and choose More > Change Enterprise Code in the Actions column.
  4. 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 existing enterprise code from the drop-down list.
    • New Enterprise Code: Enter an enterprise code. The system then creates the enterprise code and automatically associates it with the current 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 rules:
  • By default, you cannot delete default enterprise codes.

    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 directly delete enterprise codes that have already been associated with SAG app instances.

    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.

  1. Log on to the SAG console.
  2. In the left-side navigation pane, choose Smart Access Gateway APP > Enterprise Codes.
  3. On the Enterprise Codes page, find the enterprise code that you want to delete and choose More > Delete.
  4. In the Delete Enterprise Code message, confirm the enterprise code and click OK.

References

Overview