Coder Social home page Coder Social logo

Comments (4)

abellotti avatar abellotti commented on August 15, 2024 1

If this is something you need back with each call with attributes=authorization,

Maybe something like this ?

  "identity": {
    "userid": "admin",
    "name": "Administrator",
    "user_href": "http://localhost:3000/api/users/10000000000001",
    "group": "EvmGroup-super_administrator",
    "group_href": "http://localhost:3000/api/groups/10000000000002",
    "role": "EvmRole-super_administrator",
    "role_href": "http://localhost:3000/api/roles/10000000000001",
    "tenant": "Red Hat",
    "groups": [
      "Tenant My Company access",
      "EvmGroup-super_administrator"
    ],
    "miq_groups" : [
        {
           "description" : "Tenant My Company access",
           "href" : "http://localhost:3000/api/groups/1000000000021",
           "id" : "1000000000021"
        },
        {
            "description" : "EvmGroup-super_administrator",
            "href" : "http://localhost:3000/api/groups/1000000000002",
             "id": "1000000000002",
        }
    ]
  }

from manageiq-api.

abellotti avatar abellotti commented on August 15, 2024

keeping current groups array returned as is (ye-old compatibility) but maybe some additional details separately.

@AllenBW what info out of groups do you need ? with all groups details, might be tons of data, we may want to only return that if attributes=authorization, "identity" is always returned but we can extend with an miq_groups element when attributes=authorization

from manageiq-api.

AllenBW avatar AllenBW commented on August 15, 2024

see i did that! added the miq_groups attribute... it didn't do much... all i need/want is an id or href for the groups, of course can be gotten by doing a call on api/groups and matching em on the client... but that kinda seems crazy to make another call :-/

from manageiq-api.

AllenBW avatar AllenBW commented on August 15, 2024

@abellotti GOSH YES!!!! This would save the day

from manageiq-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.