If you encounter the “Operation is not permitted without secure token unlock” error when updating the Swif admin password, here’s what you need to know:
Why This Error Occurs
When the Swif admin password is reset by the user, the new password only works for the initial reset. After that, the Swif agent loses access to the Swif admin credentials required to manage future password updates for any device user. This is because the Swif agent relies on the stored Swif admin credentials to authenticate and apply updated device user passwords.
Solution
Swif has released a fix for this issue, but if you continue experiencing the error, please:
Check the password for your Swif Admin Account
Open Terminal and run:sudo sysadminctl -adminUser swifteam -adminPassword '{{ADMIN_PASSWORD}}' -secureTokenOn swifteam -password '{{ADMIN_PASSWORD}}'
Replace {{ADMIN_PASSWORD}} with your Swif admin password.
If you have the wrong password, you will getsudo sysadminctl -adminUser swifteam -adminPassword '{{ADMIN_PASSWORD}}' -secureTokenOn swifteam -password '{{ADMIN_PASSWORD}}' 2024-10-30 04:47:11.963 sysadminctl[74327:1458515] Operation is not permitted without secure token unlock.
If you have a correct password, you will get
sudo sysadminctl -adminUser swifteam -adminPassword '{{ADMIN_PASSWORD}}' -secureTokenOn swifteam -password '{{ADMIN_PASSWORD}}' 2024-10-30 04:47:51.069 sysadminctl[74346:1459181] - Done!
Contact Swif Support
To restore your capabilities to reset your device user password, reach out to our support team. We’ll add the new password to our database.Contact via Intercom in the Swif app.
Email: support@swif.ai with your account details.
This should help resolve the issue. Contact us if you need additional support.