Skip to content

Commit 5d3529b

Browse files
Modifying UserGroupV2 response (#670)
1 parent d4202d5 commit 5d3529b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

harness/nextgen/model_user_group_response_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type UserGroupResponseV2 struct {
2222
// Name of the UserGroup.
2323
Name string `json:"name"`
2424
// List of users emails in the UserGroup.
25-
Users []UserInfo `json:"users,omitempty"`
25+
Users []UserBasicInfo `json:"users,omitempty"`
2626
// List of notification settings.
2727
NotificationConfigs []NotificationSettingConfigDto `json:"notificationConfigs,omitempty"`
2828
IsSsoLinked bool `json:"isSsoLinked,omitempty"`

harness/nextgen/model_user_info.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ type UserInfo struct {
2828
UtmInfo *UtmInfo `json:"utmInfo,omitempty"`
2929
ExternallyManaged bool `json:"externallyManaged,omitempty"`
3030
}
31+
32+
type UserBasicInfo struct {
33+
Id string `json:"id,omitempty"`
34+
Email string `json:"email,omitempty"`
35+
}

0 commit comments

Comments
 (0)