Providing Access for New Users¶
When developing Cloud Foundry hosted applications for Insights Hub, you need access to a Insights Hub developer environment (tenant) and to the associated Cloud Foundry org. Likewise, you need access to an operator environment and the associated Cloud Foundry org for using your applications productively and/or selling them to customers.
This guide describes how to provide access to new developers or operators.
Adding a User to your environment¶
This section explains how to invite new users to your developer or operator environment and how to grant them access to Developer Cockpit or the Operator Cockpit, respectively.
Developer Cockpit allows users to manage application versions and registration workflows on developer environment. Operator Cockpit allows users to deploy applications and publish them for productive use.
Prerequisites¶
- You are tenant admin.
Creating the User Account¶
- Open "Settings" from Launchpad.
- Open the "Users" tab and click on the " Create user" to add a new user.
- Enter the e-mail address of the new user.
- Click "Create User" to confirm your entry.
The user receives an e-mail with the link for accessing Insights Hub environment.
Assigning a Role¶
New users only have limited access permissions on their environment. For accessing "Developer Cockpit", users must be assigned the mdsp:core:Developer
or the mdsp:core:DeveloperAdmin
role. For accessing "Operator Cockpit", users must be assigned the mdsp:core:OperatorAdmin
role.
Follow the steps below to assign a role to a user.
- Open "Settings" from the Launchpad.
- Open the "Users" tab and select the user.
- Click "Edit direct assignments" in the "Roles" section.
- Assign the desired role (see above) to the user.
- Click "Next" and then click "Save".
The role is successfully assigned to the user.
Uploading Applications
The user can log into Cloud Foundry, but does not yet have access to your Cloud Foundry org, where they can deploy new applications. You first have to assign them a Cloud Foundry role as described in the next section.
Adding a User to your Cloud Foundry Org¶
Cloud Foundry users can sign into Cloud Foundry with their Insights Hub account with Insights Hub/Siemens ID credentials.
When purchasing a DevOps Plan, the designated administrator automatically receives admin privileges for their Cloud Foundry org. The org can be fully managed using the Cloud Foundry CLI.
Prerequisites¶
- You have the
OrgManager
role for your Cloud Foundry org. - You have installed Cloud Foundry CLI.
- The user has been invited to a developer environment as described above.
- The user has logged into Cloud Foundry at least once.
Adding the User to your Cloud Foundry Org¶
- Open a command line interface (CLI).
-
Configure the proxy settings, if necessary.
Click here for detailed information on proxy settings
If you are in a company network behind a proxy, you may have to set the proxies to reach the Cloud Foundry endpoints. Contact your administrator, if you face any timeouts or connectivity problems.
Set the proxies for the Cloud Foundry CLI as shown below:
set http_proxy=http://PROXY_IP:PROXY_PORT set https_proxy=http://PROXY_IP:PROXY_PORT
export http_proxy=http://PROXY_IP:PROXY_PORT export https_proxy=http://PROXY_IP:PROXY_PORT
-
Log in to CF using CF CLI. Enter
cf login -a https://api.cf.{region}.{mindsphere-domain} --sso
. - Open the URL printed by the CLI and log in using your Insights Hub or Siemens ID credentials to get a one-time code.
-
Enter the one-time code in the CLI.
-
Select your Cloud Foundry org.
-
Use the following command to add the user to your Cloud Foundry org:
cf set-org-role {user_name} {org_name} {role}
Info
A user must have the Cloud Foundry role
SpaceDeveloper
to push an application. -
Alternatively, use the following command to add the user to a particular space:
cf set-space-role {user_name} {org_name} {space_name} {role}
The user has the assigned access permissions for the Cloud Foundry org or space. For more information on changing user permissions in your Cloud Foundry org, refer to the Cloud Foundry How Tos.
Related Links¶
- Cloud Foundry Roles and Permissions
- Getting started with the CF CLI
- Cloud Foundry
- How Tos for Cloud Foundry
- Resources for Cloud Foundry
Except where otherwise noted, content on this site is licensed under the Development License Agreement.