Shaving yaks and automating all the things.
seansweeney / move-agol-users-to-sso Goto Github PK
View Code? Open in Web Editor NEWMove everything we know about one ArcGIS Online user to another account.
License: The Unlicense
Move everything we know about one ArcGIS Online user to another account.
License: The Unlicense
Shaving yaks and automating all the things.
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.
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:
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.