Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Script to disable/make user inactive after a period of time

    Posted 02-07-2022 16:43
    No replies, thread closed.

    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
    ------------------------------


  • 2.  RE: Script to disable/make user inactive after a period of time

    Posted 02-11-2022 22:19
    No replies, thread closed.
    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.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------