Skip to content

Commit f7d13a8

Browse files
authored
Create emu-list-member-email-addresses
1 parent 16201f7 commit f7d13a8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This GraphQL query will print a list of all EMU (Enterprise Managed User) member email addresses, usernames, and display names in an enterprise.
2+
# This query will not work properly for enterprises that do not use EMUs, as non-EMU enterprises contain personal user accounts and therefore email addresses may be private depending on the user profile configuration.
3+
4+
{
5+
enterprise(slug: "enterprise slug") {
6+
members(first: 100) {
7+
nodes {
8+
... on EnterpriseUserAccount {
9+
login
10+
name
11+
user {
12+
email
13+
}
14+
organizations(first: 10) {
15+
nodes {
16+
login
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)