Select to view content in your preferred language

Use InvitationManager to find out when an invitation was sent

72
1
Friday
Labels (2)
DeirdreSmyth
New Contributor III

Hi There,

I am looking to use python to access if a user has been sent an invitation to join a group and if so when this invitation was sent.  Has anyone done this?

I can use the UserInvitationManager to get the invitation object and in the api reference it says you can access the details of an invitation using the object properties but I'm not very experienced with python and am not sure how to do this.

Thanks and regards,

Dee

 

 

 

Tags (4)
0 Kudos
1 Reply
EarlMedina
Esri Regular Contributor

I'm not sure what kind of information is stored, but the way you would get a list of invitations is like so:

 

from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com", "user", "pass")

invitations = gis.users.invitations.list()

 

 

 

0 Kudos