We use on-prem SharePoint 2013. I have developed a custom timer job using C# code which uses Server Object Model.
this timer job is run on a daily basis and it connects to each and every site collection in the farm and gets a list of all items which have unique permissions on them. it also creates a list of users who have permissions on those uniquely permission items.
this list is then inserted into a custom SQL Server Database and kept for audit purposes.
If I am migrating to Office 365, how should i re-write this code?
My expectations is that the code I write is compatible with the cloud model... but for a few days we will be on-prem. so the code should work on-prem as well.
Is this possible? can you point me to some documentation which will help me make this application cloud ready?
val it: unit=()