MCPcopy Create free account
hub / github.com/dropbox/dbxcli / testTeamMember

Function testTeamMember

cmd/team_json_test.go:436–456  ·  view source on GitHub ↗
(memberID, email, displayName string)

Source from the content-addressed store, hash-verified

434}
435
436func testTeamMember(memberID, email, displayName string) *team.TeamMemberInfo {
437 now := dropbox.DBXTime(time.Date(2026, 6, 25, 12, 0, 0, 0, time.UTC))
438 return &team.TeamMemberInfo{
439 Profile: &team.TeamMemberProfile{
440 MemberProfile: team.MemberProfile{
441 TeamMemberId: memberID,
442 AccountId: "dbid:" + memberID,
443 Email: email,
444 EmailVerified: true,
445 Status: &team.TeamMemberStatus{Tagged: dropbox.Tagged{Tag: "active"}},
446 Name: users.NewName(strings.Split(displayName, " ")[0], "User", strings.Split(displayName, " ")[0], displayName, "TU"),
447 MembershipType: &team.TeamMembershipType{Tagged: dropbox.Tagged{Tag: "full"}},
448 JoinedOn: &now,
449 ProfilePhotoUrl: "https://example.com/photo",
450 },
451 Groups: []string{"gid:eng"},
452 MemberFolderId: "ns:" + memberID,
453 },
454 Role: &team.AdminTier{Tagged: dropbox.Tagged{Tag: "member_only"}},
455 }
456}
457
458func testTeamGroup(name, id string, memberCount uint32) *team_common.GroupSummary {
459 group := team_common.NewGroupSummary(name, id, &team_common.GroupManagementType{Tagged: dropbox.Tagged{Tag: "user_managed"}})

Calls

no outgoing calls

Tested by

no test coverage detected