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

[fiware-stackoverflow] Give role to user for application registred in fiware

    Details

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

      Description

      Created question in FIWARE Q/A platform on 10-07-2015 at 13:07
      Please, ANSWER this question AT https://stackoverflow.com/questions/31340155/give-role-to-user-for-application-registred-in-fiware

      Question:
      Give role to user for application registred in fiware

      Description:
      I have done a application which I have registred in fiware, this application only have one authorized user to use. I want to authorize more users with new roles to they can use it.
      I am trying to give a role for an user without use the graphical interface whit keystone api, but nothing works. I am looking for in a lot of pages but I don´t find nothing. I find this page https://github.com/ging/fi-ware-idm/wiki/REST-API only, where I saw Roles API. I have tried to use, but it didn´t work.

      If I use,
      PUT /OS-ROLES/users/$user_id/applications/$application_id/roles/$role_id

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

      I don´t understand the result because I am the owner of the application. How I can solve it?

      Thank you

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler KeyRock [ 10889 ]
        Description
        Created question in FIWARE Q/A platform on 10-07-2015 at 13:07
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/31340155/give-role-to-user-for-application-registred-in-fiware


        +Question:+
        Give role to user for application registred in fiware

        +Description:+
        I have done a application which I have registred in fiware, this application only have one authorized user to use. I want to authorize more users with new roles to they can use it.
        I am trying to give a role for an user without use the graphical interface whit keystone api, but nothing works. I am looking for in a lot of pages but I don´t find nothing. I find this page https://github.com/ging/fi-ware-idm/wiki/REST-API only, where I saw Roles API. I have tried to use, but it didn´t work.

        If I use,
        PUT /OS-ROLES/users/$user_id/applications/$application_id/roles/$role_id

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

        I don´t understand the result because I am the owner of the application. How I can solve it?

        Thank you
        Created question in FIWARE Q/A platform on 10-07-2015 at 13:07
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/31340155/give-role-to-user-for-application-registred-in-fiware


        +Question:+
        Give role to user for application registred in fiware

        +Description:+
        I have done a application which I have registred in fiware, this application only have one authorized user to use. I want to authorize more users with new roles to they can use it.
        I am trying to give a role for an user without use the graphical interface whit keystone api, but nothing works. I am looking for in a lot of pages but I don´t find nothing. I find this page https://github.com/ging/fi-ware-idm/wiki/REST-API only, where I saw Roles API. I have tried to use, but it didn´t work.

        If I use,
        PUT /OS-ROLES/users/$user_id/applications/$application_id/roles/$role_id

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

        I don´t understand the result because I am the owner of the application. How I can solve it?

        Thank you
        HD-Chapter Security [ 10841 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: