I am a computer science student and I working on this project;
Goal: Python script to publish hosted feature layer to AGOL from a geodatabase. To eventually move features to Open Data.
I am referencing my arcpy object to a Pro project in which lives a gdb file. I store the list of items from the gdb into a list called lyrList that is sent to my publish function.
Problem: Publishing is working, however, the sharing to my groups is not. I am passing a list with two group names to UploadServiceDefinition_server just like the documentation asks for. Code was written referencing the sharing module found here: