Contact Free trial Login

Set Environment, User, and Role Access

Anypoint Platform lets you manage the roles of those who administer the Anypoint MQ features in Anypoint Platform for your organization.

Create an Environment

Before you can give yourself Anypoint MQ access permissions, you need an environment to associate permissions with.

  1. Log into Anypoint Platform.

  2. Click Access Management from the left navigation bar or click Access Management from the main Anypoint Platform screen.

  3. Click Environments under ACCESS MANAGEMENT, and click Add environment:

    mq add env
  4. In the Add Environment screen, provide a name for your environment, and click either Production or Sandbox. You may want to create separate environments for each. A sandbox is used to test applications, whereas production is the public view. For this tutorial, you can choose Production.

    mq create env

Give Users Anypoint MQ Access Permissions

First give yourself Anypoint MQ access permissions and then give others in your organization access.

Assign user permissions to yourself for use with Anypoint MQ. These permissions let you create client applications, and destinations by creating queues and exchanges. You can use the same information to assign user permissions for others in your organization.

To assign user permissions:

  1. In Anypoint Platform, click Access Management and Users.

  2. Click a user name value:

    mq am users
  3. Click MQ and set an environment and permissions. For permissions, you can click Select all to set all permissions, or Select none to erase previously clicked settings:

    mq acc mgmt user detail
  4. Click the blue plus icon to save your settings:

    mq blue plus icon

    A summary list appears:

    mq perms display

    You can use this display to delete permissions if needed.

Create an Admin Role

You can create a role that you can apply to other users in your organization. While you don’t need roles to complete this tutorial, when you use Anypoint MQ as an administrator or developer, you should create roles for all those in your organization who use MQ.

Creating a role lets you assign access rights to users in your organization, such as for administrators, developers, or for those who only view information but don’t change it.

  1. In Anypoint Platform, click Access Management > Roles.

  2. Click Add Role.

    mq roles add role
  3. Name the role Admin Role and click the Add role button.

  4. Click the role name and click MQ.

  5. Specify the Production Environment, and set all the Permissions by clicking Select All:

    mq admin role detail
  6. Click the blue plus button to save your changes. Anypoint Platform displays your settings.

The settings are:

  • Clear destinations: Same privileges as View destinations, plus permission to purge messages

  • Manage clients: Same privileges as View clients, plus permission to create client apps

  • Manage destinations: Same privileges as View destinations and Clear destinations, plus permission to:

    • Create new queues and message exchanges

    • Edit existing queues and message exchange settings

    • Access Message Sender and Browser pages

    • Delete messages

  • View clients: View all client apps and the client App IDs and client secrets for each client app

  • View destinations: View all destinations and each destination’s settings (ID, Type, Message TTL and Message Lock Default TTL); view In Queue messages and In Flight messages

Add Additional Roles For Anypoint MQ Access

After you create an admin role, you can optionally create other roles for users in your organization who need Anypoint MQ access in Anypoint Platform.

  1. From the left navigation bar or the main screen, click Access Management.

  2. Click Roles and Add role:

    mq roles add role
  3. Type the role name and description, and click Add role:

    mq add role edit fields
  4. In the list of roles, click the name of role you just created:

    mq roles list
  5. Click MQ and set an environment and permissions. For permissions, you can click Select all to set all permissions, or Select none to erase previously clicked settings:

    mq acc mgmt user detail
  6. Click the blue plus icon to save your settings:

    mq blue plus icon

    A summary list appears:

    mq perms display

    You can use this display to delete permissions if needed, or you can delete the role.

    You can also delete a role from the Roles list page by clicking the checkbox for an entry, and then clicking Delete role.

    mq delete role

Switch Environments

  1. In Management Center, click MQ > Production: mq production button.

  2. In Switch Environment you can change to a different environment or change your default environment:

    • To swtich to a different environment, click the name of that environment, for example Sandbox if you previously created a Sandbox environment, and click Switch.

    • To change your default environment, click Open Your Profile To Change The Default Environment and choose a different environment.

See Also

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub