Skip to content

Commit 4f1401b

Browse files
committed
AccountExternalIdInfo/Accounts.GetAccountExternalIDs: Adjusted docs according the official documentation
1 parent 8a06083 commit 4f1401b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

accounts.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ type AccountDetailInfo struct {
126126
RegisteredOn Timestamp `json:"registered_on"`
127127
}
128128

129-
// AccountExternalIdInfo contains informations to link to external ID providers
129+
// AccountExternalIdInfo entity contains information for an external id of an account.
130130
type AccountExternalIdInfo struct {
131131
Identity string `json:"identity"`
132132
EmailAddress string `json:"email_address,omitempty"`
@@ -325,7 +325,10 @@ func (s *AccountsService) GetAccountDetails(accountID string) (*AccountDetailInf
325325
return v, resp, err
326326
}
327327

328-
// GetAccountExternalIDs returns AccountExternalIdInfo for the account
328+
// GetAccountExternalIDs retrieves the external ids of a user account.
329+
//
330+
// Only external ids belonging to the caller may be requested.
331+
// Users that have Modify Account can request external ids that belong to other accounts.
329332
//
330333
// Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#get-account-external-ids
331334
func (s *AccountsService) GetAccountExternalIDs(accountID string) (*[]AccountExternalIdInfo, *Response, error) {

0 commit comments

Comments
 (0)