You would have to create this outside of Genesys Cloud. You would first have to find users that have not logged in after 90 days using the Users API and look for dateLastLogin. After you determine the User ID, you would then use /api/v2/users/{userId}/state to set the user to inactive and use something for the stateChangeReason. There is nothing inside GC at this time to automatically do this.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.comhttps://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------
Original Message:
Sent: 02-07-2022 16:43
From: Yusuf Iman
Subject: Script to disable/make user inactive after a period of time
Hi All,
Is there a script that we could use to make users that have not been logged on for 90day inactive?
Any help would be appreciated.
Thanks,
Yusuf
#PlatformAdministration
#SystemAdministration
#Unsure/Other
------------------------------
Yusuf Iman
Datacom Connect Limited
------------------------------