Esri / portalpy

A module that allows you to administer Portal for ArcGIS and ArcGIS Online.
Apache License 2.0
52 stars 36 forks source link

Implementation of invitations retrieval and deletion feature #19

Closed aayushkr closed 8 years ago

aayushkr commented 8 years ago

Two methods are added to the portalpy to expand its admin capabilities in handling pending invitations.

def get_pending_invitations(self, paginationPerRequest=100):

This method can be used to get a list of all pending invitations. User can either define the number of records to fetch per POST request or leave it to the default value of 100. Note: the method retrieves all pending invitations. Not just the first 100 in the default case

Example usage -

invitations = self.portal.get_pending_invitations()

Delete Pending Invitation

def delete_invitation(self, invitationId):

This method can be used to delete a pending invitation based on it's id. Example usage -

response = self.portal.delete_invitation(invitation['id'])
aayushkr commented 8 years ago

I have merged some of the pending pull requests on esri/portalpy project which you may have not got a chance to attend to.