copyright | lastupdated | keywords | subcollection | content-type | completion-time | ||
---|---|---|---|---|---|---|---|
|
2022-07-26 |
quantum, Qiskit, runtime, near time compute, university, business, organization, appid |
quantum-computing |
tutorial |
15m |
{{site.data.keyword.attribute-definition-list}}
{: #appid-cloud-org} {: toc-content-type="tutorial"} {: toc-completion-time="15m"}
App ID creates an ID provider so you can add users directly in App ID or connect to other external ID providers. This tutorial describes how to set up your ID provider to work with IBM Cloud users, and gives instructions for users to access the environment. {: shortdesc}
To manage users in a different way, follow the instructions in one of these topics:
{: #create-appid-cloud} {: step}
- Open App ID from the IBM Cloud catalog{: external} and log in if necessary. Specify the following values:
- For Select a location, it is recommended that you keep it in the same location as the Qiskit Runtime service, which is
Washington DC (us-east)
. - Select a pricing plan:
- The Lite plan is free of charge and is enough to get started. If needed, you can seamlessly upgrade to the graduated tier later.
- The Graduated tier is paid per event and per user beyond the lite tier limits. This tier supports more features such as multi-factor authentication. The Cloud administrator as the owning account of the App ID instance is charged for any fees for the graduated tier instances.
- Complete the values for Service name (the App ID instance name), Resource group (if one is being used), and any tags you want.
- For Select a location, it is recommended that you keep it in the same location as the Qiskit Runtime service, which is
- Read and agree to the terms and click Create.
{: #add-users-appid-cloud} {: step}
We will use the Cloud Directory capability to add users to the ID provider. Refer to the App ID documentation{: external} for instructions how to integrate other ID providers into App ID.
- Open the IBM Cloud resource list{: external}, expand the Services and software section, find your App ID instance and click its name to view its details.
- Click Manage Authentication and deselect any login options that you don't need, such as Facebook and Google.
- Go to Manage Authentication → Cloud Directory → Settings and choose whether user logins should use email or usernames.
- Optionally go to Manage Authentication → Cloud Directory → Password Policies to define the password strength.
- Optionally open Login Customization and customize the appearance of the login page.
{: #integrate-appid-cloud} {: step}
- Go to Manage → Access (IAM) → Identity Providers{: external}. For Type, choose IBM Cloud App ID, then click Create.
- Specify a name and select the App ID instance from the drop-down list.
- Select the checkbox to enable the ID provider.
- The default IdP URL is shown. Share this URL with users when they need to log in.
{: #add-user-org-cloud} {: step}
When you use App ID as ID provider with the Cloud directory, you can create users in the IBM Cloud user interface.
- Open the App ID instance page from the resource list{: external} Services and software section.
- Go to Manage Authentication → Cloud Directory → Users, and click Create User. Enter the user details.
{: #cloud-assign-user-org-cloud} {: step}
-
Go to Manage → Access (IAM) → Users{: external} and click the user. If you don't see the user that you want to manage, verify that they logged in to IBM Cloud at least once. See step 1 in the User flow. {: note}
-
Add access groups with Assign group or remove the user from an access group by clicking the three dot menu and choosing Remove user.
{: #user-org-cloud}
-
A user is sent the ID provider URL for the IBM Cloud account. They use this URL and the login information to access the system. The user should change their password after they log on.
The administrator can always go to Manage → Access (IAM) → Identity providers{: external} to look up the ID provider URL. {: note}
-
To work with Qiskit Runtime and access service instances, users need to create an API key from (Manage → Access (IAM) → API keys{: external}).
-
For further information, users can review Getting started, Step 2.
{: #steps-appid-org-cloud}
In our example, we want to create the following setup:
- We have two projects,
ml
andfinance
.- The
ml
project needs access to the service instancesQR-ml
andQR-common
. - The
finance
project should have access to the service instancesQR-finance
andQR-common
.
- The
- We have three users:
- Fatima needs access to the
ml
project. - Ravi needs access to the
finance
project. - Amyra needs access to both projects.
- Fatima needs access to the
- We will use access groups without resource groups.
- Users are defined in IBM Cloud but project assignments are done in an App ID instance.
- Users should be able to delete jobs.
The steps to implement this setup are:
-
The Cloud administrator creates an App ID instance and ensures that it is linked in the Cloud administrator's account. The administrator notes the ID provider URL to share it with users.
-
The Cloud administrator creates three service instances:
QR-ml
,QR finance
, andQR-common
. -
The Cloud administrator creates a custom rule that includes the
quantum-computing.job.delete
action. -
The Cloud administrator creates two access groups:
- The
ml
access group can accessQR-ml
andQR-common
. This access group needs a dynamic rule for the App ID IDP that accepts users whoseproject
attribute containsml
. - The
finance
access group can accessQR-finance
andQR-common
. This access group needs a dynamic rule for the App ID IDP that accepts users whoseproject
attribute containsfinance
.
- The
-
The ID provider administrator defines the three users in the IBM Cloud user interface.
-
Users log in at least once.
-
The cloud administrator assigns access by adding users to the access groups that give them access to the projects:
- Fatima is given access to the
ml
project. - Ravi is given access to the
finance
project. - Amyra is given access to the
ml
andfinanace
projects.
- Fatima is given access to the
-
Users can log in through the ID provider URL, create API keys, and work with their projects' service instances.
{: #next-stepscloud-org}
- For more information, see additional considerations.