As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi All,
I want to use Create Bulk user API in Job Scheduler .How can i use it in Job Scheduler. Please do guide me out.
Thanks and Regards,
Piyush Patel.
Check these threads on how to create users in bulk via OOTB rest api :
https://hub.alfresco.com/t5/alfresco-content-services-forum/adding-bulk-users-from-a-csv-file-using-webscript/m-p/299276#M19603
With custom code :
https://hub.alfresco.com/t5/alfresco-content-services-forum/i-want-to-add-bulk-users-to-groups-and-provide-roles-and/td-p/296530
https://hub.alfresco.com/t5/alfresco-content-services-forum/create-new-users-without-admin-rights/td-p/294702
You can take reference from here on creating scheduled jobs:
https://javaworld-abhinav.blogspot.com/2015/08/creating-scheduled-job-in-alfresco.html
And embed the custom code or api call within "executeJob" method. An example can also be found here: https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-execute-two-stateful-cron-jobs-java-classes/m-p/294174/highlight/true#M16802