Skip to content

Commit 1b8581b

Browse files
allmightyspiffGitHub Enterprise
authored andcommitted
Merge pull request #912 from SoftLayer/issues911
Updated user details objectMask to properly get all required fields
2 parents 5a0a0b4 + f2a5cc7 commit 1b8581b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
install:
1818
# Required to install detect-secrets
1919
- echo -e "machine github.ibm.com\n login $CI_USER_TOKEN" > ~/.netrc
20-
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin
20+
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -d -b $GOPATH/bin
2121
before_script:
2222
- go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor")
2323
- go test $(go list ./... | grep -v "fixtures" | grep -v "vendor")

plugin/commands/user/details.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ func (cmd *DetailsCommand) Run(args []string) error {
7878
logins := cmd.Logins
7979
events := cmd.Events
8080

81-
object_mask := "userStatus[name],parent[id,username],apiAuthenticationKeys[authenticationKey],sslVpnAllowedFlag"
81+
object_mask := `mask[
82+
firstName, lastName, email, openIdConnectUserName, address1, address2, city, state, country, postalCode,
83+
companyName, createDate, officePhone, id, username, parent, successfulLogins,
84+
userStatus[name],parent[id,username],apiAuthenticationKeys[authenticationKey],sslVpnAllowedFlag
85+
]`
8286
user, err := cmd.UserManager.GetUser(id, object_mask)
8387
userInfo.User = user
8488
if err != nil {

0 commit comments

Comments
 (0)