Jump to content

Smartyparts

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Smartyparts

  1. Is there a way to enable "Password Requires Check Out" and "Change Password On check In" using the API?

     

    I have tried the following and it doesn't work....

     

    -------------------

     

    $Body = @{
        PasswordListID = "123"
        Title = $User
        Username = $User
        apikey = $apiKey
        GeneratePassword = "true"
        Description = $Description
        PasswordResetEnabled = "true"
        PasswordResetSchedule = "23:00"
        PrivilegedAccountID = "2"
        ScriptID = "30"
        HeartbeatEnabled = "true"
        HeartbeatSchedule = "17:00"
        ValidationScriptID = "7"
        AccountTypeID = "65"
        domain = "xxx"
        ADDomainNetBIOS = "xxx"
        RequiresCheckOut= "true"
        ChangeOnCheckin= "true"
    }

    Invoke-RestMethod -URI $PopeyeURL -Method Post -Body $Body
     

×
×
  • Create New...