GuideReference
TrainingSupportCommunity
Guide

Users affected by moving group

akamai_iam_users_affected_by_moving_group

Get a list of users who have been affected by moving a group.

data "akamai_iam_users_affected_by_moving_group" "my_affected_users" {
  source_group_id      = 12345
  destination_group_id = 98765
  user_type            = "gainAccess"
}

output "my_affected_users" {
  value = data.akamai_iam_users_affected_by_moving_group.my_affected_users
}
Changes to Outputs:
  + my_affected_users = {
      + destination_group_id = 98765
      + source_group_id      = 12345
      + user_type            = "gainAccess"
      + users                = [
          + {
              + account_id      = "act_A-CCT1234"
              + email           = "jsmith@email.com"
              + first_name      = "John"
              + last_login_date = "2024-07-16T09:54:32Z"
              + last_name       = "Smith"
              + ui_identity_id  = "A-BC-1234567"
              + ui_username     = "jsmith@email.com"
            },
          + {
              + account_id      = "act_A-CCT1234"
              + email           = "jensmith@email.com"
              + first_name      = "Jen"
              + last_login_date = "2024-09-23T14:57:55Z"
              + last_name       = "Smith"
              + ui_identity_id  = "A-BC-987654"
              + ui_username     = "jensmith@email.com"
            },
        ]
    }

Arguments

Pass source group and destination group IDs in the data block to get the affected users. You can narrow down the results by users who have lost or gained access resulting from this move.

ArgumentRequiredDescription
source_group_idThe ID of a group that has been moved.
destination_group_idThe ID of a group your source group has been moved to.
user_typeFilters the list by users who have lostAccess or gainAccess.

Attributes

Returned to you is a list of the affected users.

AttributeDescription
ui_identity_idThe user's UI ID.
account_idThe user's account ID.
emailA user's email address.
first_nameA user's given name.
last_nameThe user's surname.
last_login_dateThe last time the user logged in in ISO 8601 format.
ui_usernameThe user's Akamai Control Center name.