I want to perform a load test of a python script which creates/deletes users in the GoogleWorkspace. However, I faced the following Error.
googleapiclient.errors.HttpError: <HttpError 412 when requesting https://admin.googleapis.com/admin/directory/v1/users?alt=json returned "A request for user account creation is disallowed as we've detected some potentially abusive behavior. Please contact Google support for help."
the load test I want to do
I want to confirm that 1000 users can be created successfully using "Google_add.py"(,and deleted successfully using "Google_delete.py"), but because of the problem of my license, my GoogleWorkspace cannot have over 10 users.
Then, I tried to create a user and delete it, create another user and delete it... 1000 times by running the shell script which calls "Google_add.py" and "Google_delete.py".
the Error
The Error occurred in ruining the "Google_add.py".
Agoogleapiclient.errors.HttpError: <HttpError 412 when requesting https://admin.googleapis.com/admin/directory/v1/users?alt=json returned "A request for user account creation is disallowed as we've detected some potentially abusive behavior. Please contact Google support for help.">
My operation has been detected as "some potentially abusive behavior."
question
Is the only way to resolve this error that I upgraded my license? I think it is difficult to identify accurately why My operation has been detected as "some potentially abusive behavior", but please tell me some ideas to resolve this error, to ignore it, not to occur it and so on.