Giter VIP home page Giter VIP logo

move-agol-users-to-sso's Introduction

๐Ÿ™‹โ€โ™‚๏ธ Hi I'm Sean Sweeney ๐Ÿ™ƒ

Shaving yaks and automating all the things.

ย ย  ย ย 

ย ย 

move-agol-users-to-sso's People

Contributors

seansweeney avatar

Watchers

 avatar  avatar

move-agol-users-to-sso's Issues

Support for connected items in groups with edit access

Items that are in Shared update groups can't have their owner changed. The script handles this by removing the item from the group, then moving it, then adding it back to the group.

item.unshare(item_update_groups)

item.share(groups=item_update_groups, allow_members_to_edit=True)

Some items, for example the parts of a story map, can't be moved one-by-one. They have to all be moved at the same time. If they are not in shared update groups, the API handles this seamlessly. If they are in shared update groups, though, the script is only removing one item at a time, so when the move is attempted it is not allowed.

I can think of at least two ways to fix this issue, but both would require major changes to the content moving code:

  1. Recognizing that an item is part of a group and unsharing/moving/resharing all related items together at one time.
  2. Move the shared update group management outside the content moving loop - that is, inventory all items in shared update groups and remove them up front, then run the content moving loop, then add all the items back to their corresponding shared update groups.

Not all items are moved when there are more than 100 items in a folder.

The ArcGIS API for Python user.items() method returns only 100 items by default. To be sure you're getting all items, these calls should be wrapped in a loop and run until no items are returned.

agol_root_items = agol_user.items()

agol_folder_items = agol_user.items(folder=agol_folder['title'])

Add support for SSO login

Right now the script itself requires an ArcGIS Online user account with admin privileges to run. I had add SSO login support but for some reason it stopped working and I didn't have time to debug it before my NEARC presentation.

Add support for Group Managers

A group can have a manager, which is different from a member or the owner. Right now the script only handles the latter two. Group Manager should be handled separately to make sure that it gets transferred over properly.

Thanks to @m3zito for pointing out this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.