![]() |
Deleting Users Programmatically
We have a SSO script that creates and logs users in, but I am have having trouble with the delete aspect of it. I found in the docs there is a delete method available, but when I try to use it, I get the following error thrown:
Code:
[["auth_required"]] Any help would be appreciated. |
checkHasAdminPermission() is checking for a valid control panel session. You will probably need to write a new class without the admin check and use that instead.
|
Thanks Replicant. We ended up going with a different route. We added this code right before we run the delete call:
Code:
$api->callApi('user', 'login', array($admin_username, $admin_password)); |
All times are GMT. The time now is 03:37 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|