This article explains what happens to an application registered in the SMARTFENSE API when the administrative user who created it is deactivated, loses permissions or leaves the organization. It also indicates what to review so that no active credentials are left without an owner.
Behavior depending on what the application does
The result depends on the API functions the application uses.
Create or modify campaigns and create content
The application stops working immediately.
On each call, the platform checks that the administrative user who registered the application is still active and keeps the corresponding permission. If that user is deactivated, or the campaign permission is removed from them, the application's calls stop working.
The Client id and Client secret are not deleted. The application still appears as registered, but it cannot create or modify campaigns, or create content. This is an intentional security behavior.
Query data or synchronize users and groups
The application keeps working.
For the rest of the API functions, for example querying data or synchronizing users and groups, the application operates with the scopes assigned to it, not with the permissions of the user who registered it. That is why access is not cut off automatically when that user is deactivated.
Important: if an administrator leaves the organization, the applications they registered for these functions keep access to the API until they are removed.
What to do when an administrator leaves the organization
- Go to Settings > Integrations > Registered applications.
- Identify the applications registered by the administrator who is leaving.
- For each application, define whether it is still needed:
- If it is no longer used, remove it.
- If it is still used, reassign it to a current administrative user, or register it again with that user and update the credentials in the system that consumes the API.
- Verify that the integrations that create or modify campaigns keep working after the change.
💡 Best practices
- Register API applications with a service account that will not be deactivated, instead of a personal account.
- Include the review of Registered applications in the offboarding process of any administrator who manages integrations.
- Use a descriptive Name for each application, indicating its function and the responsible area.
- Assign only the minimum scopes each application needs.
- Periodically review the registered applications and remove those that are no longer used.