PS Z:\8. Bilgi Islem\3. Operations\Knowledge Base\Teamviewer_Sync> Z:\8. Bilgi Islem\3. Operations\Knowledge Base\Teamviewer_Sync\ADSync.ps1
Starting AD OU Sync...
Ping API...
Request [GET] /api/v1/ping
200 OK
Ping: Token is valid
Reading AD OU members
Get all users...
Request [GET] /api/v1/users?full_list=true
Request failed! The error was 'The remote server returned an error: (400) Bad Request.'.
Received content was:
{"error":"invalid_request","error_description":"Your Account does not have the rights required to call this function","error_code":1}
Exception calling "Add" with "2" argument(s): "Key cannot be null.
Parameter name: key"
At Z:\8. Bilgi Islem\3. Operations\Knowledge Base\Teamviewer_Sync\ADSync.ps1:174 char:3
+ $dictUsersAPI.Add($u.id, $u)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException
AD OU Sync finished.