This code allows you to manage user data via google sheets and apps script.
- Currently it works with things I need.
- From the HR system we use (BambooHR)
- Thinkgs possible to udpate atm:
- Title
- Department
- Manager
- Gender Pronoun (custom field)
- Archived state (You need archived licences to use it)
- You need to enable "Services", there in note on top of the code
- As provided code is not going to push anything, there is 1 line to un-comment and 1 to comment out.
- Update can be slow, it runs 1 API call per user (this seems to be way API is made to work)
- At the moment I get scarry but unrelevant error at the end, no idea why atm.
- Modify
main_pull()
in Main.gs to remove HR, run it to pull data from Google. - You can force rows move by updating "Force_Sync" column to "true" or put correct HR data in HR sheet manually.
- Assemble data =
main_data()
will compare HR and Google data and move diffrentces to "Google_push" - Some data will be google only (eg. "Archived" status), you can update it in "Google_push" or in "Google_pull" if you are still using
main_data()
- There is info in main.gs, I will refort it and put here later.