Introduction
The OpsAnalitica platform has an exposed Rest Like API. OpsAnalitica.net/api, It is with this API that an administrator can connect to the platform and script changes to the platform's configuration to keep it current. We recommend using the API for the administration of Orgs, Users, User Filters, and Locations.
This is an advanced operation and will require a knowledge of scripting, your current infrastructure and how hierarchy is managed within your company and a knowledge of how the OpsAnalitica platform is configured.
This article will cover a standard implementation of the OpsAnalitica platform but the administrator should confirm with their corporate admin how they have elected to configure the platform.
Definitions:
Term | Definition |
Checklists |
|
Location |
|
Location Filter |
|
Organizations |
|
Roles |
|
Tags |
|
Users |
|
User Filters |
|
Standard OpsAnalitica Configuration
If you engage with OpsAnalitica to implement your platform we will generally follow this type of set-up, described below. It doesn't matter if this is a single org or multi org structure as all changes to object configuration need to take place in the org where the object is located.
For multi-org structures:
You will need to login through the api.
You will be provided with a token.
Then you will need to generate a refresh token with the org you want to navigate to.
Then you will need to switch to that org, in order to execute what ever operations you require.
You will always need to switch orgs to the proper org to execute the appropriate updates and changes.
Therefore you will need to have an intimate knowledge of how your OpsAnalitica Platform was configured and understand where things live.
Organizations:
If you are single org organization you can stop reading and move to the locations section. All of your objects will exist in your parent org.
We generally set up the parent org, in multi-org structures, with all corporate employees and all standard checklists and tags and inherit them down.
We set up all child org: locations, user filters, and users in the child orgs to limit their access.
Locations:
Locations are created and tagged with their hierarchy tags.
Hierarchy tags are just normal tags but represent the hierarchy of your organization.
It doesn't matter how many layers of hierarchy your organization has but each location should be tagged with a minimum of their: Location Name and All Locations. You can have as many layers in the middle as you want.
User Filters should be created for each location, best practice is to name them exactly the same, and should explicitly define each layer of the hierarchy with an Or Else operator in between.
User Filters after creation should be assigned to the locations.
User Filters should always contain the location name and the All Locations tags.
Once you have one location with a User Filter, any location created that doesn't have a user filter will throw off notifications to all Users.
Every location should have a User Filter unless you are a single unit operation.
When you want to change the hierarchy or whom is assigned to a location, you need to change the tags on the Location and the associated User Filter.
Service Accounts:
It is recommended that you create a service account in the Top Org with the Administrator role and run all of your scripts using that account vs. using a person's account.
User Filters:
Each location should have a user filter with the same name.
Each User filter must explicitly contain each hierarchy tag for the respected location.
Any change to a locations hierarchy needs to be updated in the User Filter for it to take affect.
99% of the time User Filters only use the Or Else Operator.
Users:
Users are created and generally are only tagged with hierarchy tag.
You should take users with multiple locations and tag them with a region name vs. putting each location tag on their separately.
Users automatically can have access to their children organizations, if they have the Switch Orgs Role.
Common Configuration Scenarios:
New User Account:
Navigate to proper organization
Create User
Apply proper hierarchy tag
User Leaves Company:
Navigate to proper organization
Edit User
Log Out User
Inactivate User
New Location:
Navigate to proper organization
Create Location
Tag Location with Proper Hierarchy Tags
Create User Filter
Apply User Filter to Location
Hierarchy Change 1 for 1:
Navigate to proper organization
Inactivate current user
If tag is personalized change tag to reflect new users name
Create new user
Apply updated tag
Hierarchy Change Not 1 for 1:
Navigate to proper organization
Create New User
Create New User Tags (if necessary)
Go to each location affected by change, update hierarchy tags
Go to each locations user filter affected by change, remove old tags and replace with new hierarchy tags
API Calls Used:
/api/filters
/api/account/token
/api/organizations/{id}
/api/users/{id}
/api/account/login
/api/locations/{id}
/api/geoinfos/{countryCode}/{administrativeDivision1}/city/{startsWith}
/api/geoinfos/{countryCode}
/api/organizations
/api/tags
/api/locations
/api/users/{id}/organizations/{organizationId}
/api/users/{id}/organizations
/api/roles
/api/users
/api/organizations/current/{id}
β