When adding and removing the same Jamf Pro Server to a single Scout instance multiple times, issues are often encountered re-adding that server. Most of the time it's because the ScoutAdmin user was not removed from the Jamf Pro Server before we re-added the server to Scout again.
Steps to Reproduce:
Aquire a Jamf Pro Server and a scout instance
Add the JPS to Scout
Verify the 'ScoutAdmin' user was created in the JPS
Delete the server from Scout
Attempt to add the server again
Tasks:
When adding a new JPS to scout, make another request to the JPS API Endpoint: /users/name/{name} where name is ScoutAdmin.
If that user already exists, just update it with the new password generated.
If the user doesn't exists, create it as normal.
Make sure this check that the user exists happens before creating/updating the scout admin user.
When a server is deleted, also delete the ScoutAdmin user from the Jamf Pro Server using the DELETE /users/name/ScoutAdmin endpoint.
Pull Request Ready When:
Servers can be added and removed and added again without any errors.
ScoutAdmin user is deleted from the server when it's deleted from scout
When adding and removing the same Jamf Pro Server to a single Scout instance multiple times, issues are often encountered re-adding that server. Most of the time it's because the
ScoutAdmin
user was not removed from the Jamf Pro Server before we re-added the server to Scout again.Steps to Reproduce:
Tasks:
/users/name/{name}
where name is ScoutAdmin./users/name/ScoutAdmin
endpoint.Pull Request Ready When:
Resources: