Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4516

FIWARE.Request.Tech.Security.IDM-KeyRock.Assign roles to a user via Keyrock API

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hello,

      Some weeks ago we send a question to Stack Overflow but no response has
      been received
      (http://stackoverflow.com/questions/31340155/give-role-to-user-for-application-registred-in-fiware).

      The problem is that we have an application registered by an user in
      FIWARE Lab and we want to allow other users to use the application. For
      this purpose we want to assign them their appropriate roles via Keyrock
      API. We have tried to use the following method:

      PUT /OS-ROLES/users/$user_id/applications/$application_id/roles/$role_id

      (http://docs.keyrock.apiary.io/#reference/keystone-extensions/role-user-relationship/assign-a-role-to-a-user)

      However, we obtain the following error message:

      Result, {"error": {"message": "You are not authorized to perform the
      requested action: identity:add_role_to_user_default_org", "code": 403,
      "title": "Forbidden"}}

      Can anyone help us?

      Thanks in advance for your help.

      Regards,
      Jesús


      -----------------------------------------------------------
      Jesús Barrera Francés
      Dirección de Proyectos / Project Manager
      GeoSLab Logo
      C/ Carlos Marx, 6 CP 50015 Zaragoza (Spain)
      Tlf: +34 976 762666
      Fax: +34 976 106201
      jesusb@geoslab.com <jesusb@geoslab.com>
      http://www.GeoSLab.com
      Follow us on Twitter <http://twitter.com/GeoSLab>
      ------------------------------------------------------------------------
      / Antes de imprimir este correo piensa si realmente es necesario
      hacerlo / Before printing this email, assess if it is really needed /
      / ---- ADVERTENCIA ----
      La información contenida en este correo electrónico, y en su caso,
      cualquier fichero anexo al mismo, son de carácter privado y confidencial
      siendo para uso exclusivo de su destinatario. Si usted no es el
      destinatario correcto, el empleado o agente responsable de entregar el
      mensaje al destinatario, o ha recibido esta comunicación por error, le
      informamos que está totalmente prohibida cualquier divulgación,
      distribución o reproducción de esta comunicación según la legislación
      vigente y le rogamos que nos lo notifique inmediatamente, procediendo a
      su destrucción sin continuar su lectura./
      / ---- WARNING ----
      Information contained in this email, and any attached files, are private
      and confidential for the addressee. If you are not the intended
      recipient, employee or agent responsible for delivering this message to
      the addressee, or have received this communication by mistake, please be
      aware that any dissemination, distribution or duplication under current
      laws is forbidden and we request you to notify us immediately and
      destroy the message without continue reading. /
      ------------------------------------------------------------------------

      _______________________________________________
      Fiware-finodex-coaching mailing list
      Fiware-finodex-coaching@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-finodex-coaching

      [Created via e-mail received from: Jesus Barrera <jesusb@geoslab.com>]

        Issue Links

          Activity

          Hide
          backlogmanager Backlog Manager added a comment -

          Assignee before migration = Alvaro Alonso

          Show
          backlogmanager Backlog Manager added a comment - Assignee before migration = Alvaro Alonso
          Hide
          aalonsog Alvaro Alonso added a comment -

          Hi Jesús,

          please check the question in stackoverflow, I can see an answer frm my colleague Enrique at Oct 1st.

          BR

          Show
          aalonsog Alvaro Alonso added a comment - Hi Jesús, please check the question in stackoverflow, I can see an answer frm my colleague Enrique at Oct 1st. BR

            People

            • Assignee:
              aalonsog Alvaro Alonso
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: