MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / getUserIDEmail

Function getUserIDEmail

cli/internal/analytics/client.go:236–242  ·  view source on GitHub ↗
(user cqapi.User, teamName string)

Source from the content-addressed store, hash-verified

234}
235
236func getUserIDEmail(user cqapi.User, teamName string) (userID, email string) {
237 if getEnvironment() == "cloud" {
238 return teamServiceAccountUser(teamName), teamServiceAccountEmail(teamName)
239 }
240
241 return user.ID.String(), user.Email
242}
243
244func getInitCommonProps(invocationUUID uuid.UUID, event InitEvent, details *eventDetails) rudderstack.Properties {
245 props := rudderstack.NewProperties().

Callers 2

getSyncCommonPropsFunction · 0.85
getInitCommonPropsFunction · 0.85

Calls 4

getEnvironmentFunction · 0.85
teamServiceAccountUserFunction · 0.85
teamServiceAccountEmailFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected