How do you usually organize Employee records/Roles...
# general
g
How do you usually organize Employee records/Roles/Integrations and Access Tokens for external integrations? Let's say I am developing the app MyApp that calls a restlet using TBA. Would you create an integration called MyApp, an Employee called MyApp, a Role called MyApp and an access token for user/role/app MyApp. Or do you reuse all of these so you have a MyCompany app/employee/role/access token that is used by all of your custom integrations?
And do I really need to create Employee records to be able to create an Access Token? Seems weird to have an Employee represent an application 😄
j
Hey @Gabriel Falkenberg - you would definitely want to setup a "Service Account" with the associated role. Keep it generic for all future use... planning for the future - just in case you get hit by a turnip truck. 😉 So yes - it needs a role with proper permissions (it's a lengthy process) And yes - Access Tokens are generated at the user level. Generic is the best way to go. Best.
g
Thanks @John ORourke! When you say
Service Account
, do you mean an Employee record that I use just for integrations or something else? I did find a post on reddit (searching for Service account!) that asks a similar question to mine and where the answer seem to be that there are no downsides to having a single integration user.
My main concern was from a security point of view where I don't want tokens to have more permissions than needed. But I just realized that since tokens are user + app + role there is no need at all to have separate users. If I want to limit permissions for a token I simply add multiple roles to my "Service account"-Employee. Thanks @John ORourke!
j
Correct @Gabriel Falkenberg an Employee/Service Account being the same thing... just a generic account. (In the old Microsoft days, the applications run as "services", we we would just create a generic user (service account) that would actually run everything behind the scenes. And the associated Roles can be customized, like having their password not expire.
And additionally - you would want to have a special role for the service account, giving read-only access and not the god-like permissions that could carry associated risk.
👍 1
😉