Cómo crear una política IAM que permita al usuario conectarse al área de cliente de OVHcloud (EN)

Bases de conocimiento

Cómo crear una política IAM que permita al usuario conectarse al área de cliente de OVHcloud (EN)


Icons/System/eye-open Created with Sketch. 202 visualizaciones 02.10.2024 IAM

Objective

This guide explains how to provide a user with the minimum rights to allow them to log in to the OVHcloud Control Panel.

Requirements

Instructions

To be able to log in to the OVHcloud Control Panel, a user should have at least this set of rights on the account resource:

  • account:apiovh:me/get
  • account:apiovh:me/supportLevel/get
  • account:apiovh:me/certificates/get
  • account:apiovh:me/tag/get

With these rights, a user will be able to log in to the OVHcloud Control Panel. To be able to perform any actions inside the Control Panel however, additional rights have to be assigned through IAM.

Using UI

Using the UI, you can set up a policy with the following configuration:

Add the identites you want to give access to.

Add identities

Add a resourceType "OVHcloud customer account" and add your account as a resource.

Account ressourceType

Then you can either use the managed permissions group controlPanelAccess

Control Panel Access

Or add the 4 rights listed above as an action.

Add actions

You can now link your users to this policy to give them the right to log in to the OVHcloud Control Panel.

Using API

Using the API, you can set up a policy according to the following example:

{
  "name": "manager_ro",
  "description": "manager_ro",
  "identities": [
    .... 
  ],
  "resources": [ 
     {
         "urn": "urn:v1:eu:resource:account:xx1111-ovh" 
     }],
  "permissions": {
    "allow": [
      {
        "action": "account:apiovh:me/get"
      },
      {
        "action": "account:apiovh:me/supportLevel/get"
      },
      {
        "action": "account:apiovh:me/certificates/get"
      },
      {
        "action": "account:apiovh:me/tag/get"
      }
    ]
  }
}

Go further

Join our community of users.