Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Support Users and groups at the team level - for IdM #54

Closed
mcanoy opened this issue Nov 16, 2016 · 1 comment
Closed

Support Users and groups at the team level - for IdM #54

mcanoy opened this issue Nov 16, 2016 · 1 comment

Comments

@mcanoy
Copy link
Contributor

mcanoy commented Nov 16, 2016

We are currently trying to implement the automation of users into the IdM. The api spec currently has a list of users at the engagement level called team. However, this does not support the idea that users can belong to different groups on the team.

Current:

  "team":  [
      { "user_name": "kmcanoy" }, 
      { "user_name": "obedin" }, 
      { "user_name": "jholmes" } 
    ]

Instead we would like to add the groups as well and have the users be attached to the groups that they belong to

  "team": {
    "users" : [
      { "user_name": "kmcanoy" }, 
      { "user_name": "obedin" }, 
      { "user_name": "jholmes" } 
    ],
    "groups": [
      { 
        "name": "admin",
        "members": [
          { "user_name": "kmcanoy" }, 
          { "user_name": "obedin" }, 
          { "user_name": "jholmes" }
        ]
      },
      {
        "name": "devops",
        "members": [
          { "user_name": "jholmes" }
        ]
      },
      {
        "name": "developer",
        "users": [
          { "user_name": "kmcanoy" }
        ]
      }
    ]
  }
}

Requires new team object with user array and group array. Modified group object with user array

This won't effect the group_to_role mapping

@mcanoy
Copy link
Contributor Author

mcanoy commented Nov 18, 2016

After discussing with @sherl0cks and @oybed the json output will look like this instead (Outer object is Engagement):

{
  ...
  "users" : [
    { "user_name": "kmcanoy" }, 
    { "user_name": "obedin" }, 
    { "user_name": "jholmes" } 
  ],
  "groups": [
    { 
      "name": "admin",
      "members": [
        { "user_name": "kmcanoy" }, 
        { "user_name": "obedin" }, 
        { "user_name": "jholmes" }
      ]
    },
    {
      "name": "devops",
      "members": [
        { "user_name": "jholmes" }
      ]
    },
    {
      "name": "developer",
      "users": [
        { "user_name": "kmcanoy" }
      ]
    }
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant