<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to export a csv list of members in a specific group in enterprise in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1374758#M38362</link>
    <description>&lt;P&gt;update: I am able&amp;nbsp; to generate using this tool:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mpanunto/PanunTools/blob/main/docs/README_CreateGroupMemberListAGOL.md" target="_blank"&gt;PanunTools/docs/README_CreateGroupMemberListAGOL.md at main · mpanunto/PanunTools · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I am still very keen to know how to run in from notebook.&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 06:41:09 GMT</pubDate>
    <dc:creator>KikSiops</dc:creator>
    <dc:date>2024-01-26T06:41:09Z</dc:date>
    <item>
      <title>How to export a csv list of members in a specific group in enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1374754#M38361</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to export a csv list of members in a specific group in enterprise? I am able to generate some of its data: owner, Title, Date creation, date modified...&amp;nbsp; I am using Notebook in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KikSiops_0-1706247507414.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92900iD8E9E52579099513/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KikSiops_0-1706247507414.png" alt="KikSiops_0-1706247507414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 05:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1374754#M38361</guid>
      <dc:creator>KikSiops</dc:creator>
      <dc:date>2024-01-26T05:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a csv list of members in a specific group in enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1374758#M38362</link>
      <description>&lt;P&gt;update: I am able&amp;nbsp; to generate using this tool:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mpanunto/PanunTools/blob/main/docs/README_CreateGroupMemberListAGOL.md" target="_blank"&gt;PanunTools/docs/README_CreateGroupMemberListAGOL.md at main · mpanunto/PanunTools · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I am still very keen to know how to run in from notebook.&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 06:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1374758#M38362</guid>
      <dc:creator>KikSiops</dc:creator>
      <dc:date>2024-01-26T06:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a csv list of members in a specific group in enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1375097#M38364</link>
      <description>&lt;P&gt;I have a notebook I use to write out all the users that belong to a specific group to a CSV. Is that all you need?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 21:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1375097#M38364</guid>
      <dc:creator>Dan_Brumm</dc:creator>
      <dc:date>2024-01-26T21:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a csv list of members in a specific group in enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1375263#M38366</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/439409"&gt;@Daniel&lt;/a&gt;&amp;nbsp;yes please. Thanks in advanced.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 01:29:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1375263#M38366</guid>
      <dc:creator>KikSiops</dc:creator>
      <dc:date>2024-01-29T01:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a csv list of members in a specific group in enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1376132#M38415</link>
      <description>&lt;LI-CODE lang="python"&gt;import os,csv,time

# group name to search for
group_name = 'GROUP NAME'
group = gis.groups.search(query=f'title:{group_name}')[0]

#get all the group members
accountList = group.get_members()


# create new csv file
csv_path = os.path.join(os.getcwd()+ "_Users_" + time.strftime("%b%d%Y_%H%M%S") + ".csv")

# open and write to csv
with open(csv_path, 'w',newline ='') as output:
    dataWriter = csv.writer(output)
    try:
        # Write list to CSV
        dataWriter.writerows(accountList['users'])
        
    except:
        print("count not write the list ")
        
output.close()&lt;/LI-CODE&gt;&lt;P&gt;It's not perfect but it should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to get a GIS object and input the group name you want to search for&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-export-a-csv-list-of-members-in-a-specific/m-p/1376132#M38415</guid>
      <dc:creator>Dan_Brumm</dc:creator>
      <dc:date>2024-01-30T20:36:39Z</dc:date>
    </item>
  </channel>
</rss>

