Skip to content

Commit

Permalink
removeIsIdpManagedFromListWorkspaceUsers (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliotta authored and kushalmalani committed Aug 29, 2023
1 parent 1d46b17 commit 986850a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cloud/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,25 +398,19 @@ func ListWorkspaceUsers(out io.Writer, client astrocore.CoreClient, workspace st
table := printutil.Table{
Padding: []int{30, 50, 10, 50, 10, 10, 10},
DynamicPadding: true,
Header: []string{"FULLNAME", "EMAIL", "ID", "WORKSPACE ROLE", "IDP MANAGED", "CREATE DATE"},
Header: []string{"FULLNAME", "EMAIL", "ID", "WORKSPACE ROLE", "CREATE DATE"},
}
users, err := GetWorkspaceUsers(client, workspace, userPagnationLimit)
if err != nil {
return err
}

for i := range users {
orgUserRelationIsIdpManaged := ""
orgUserRelationIsIdpManagedPointer := users[i].OrgUserRelationIsIdpManaged
if orgUserRelationIsIdpManagedPointer != nil {
orgUserRelationIsIdpManaged = strconv.FormatBool(*users[i].OrgUserRelationIsIdpManaged)
}
table.AddRow([]string{
users[i].FullName,
users[i].Username,
users[i].Id,
*users[i].WorkspaceRole,
orgUserRelationIsIdpManaged,
users[i].CreatedAt.Format(time.RFC3339),
}, false)
}
Expand Down

0 comments on commit 986850a

Please sign in to comment.