Overview
This document describes the API for use with MIM or On-Premises Active Directory for customers who want to extract employee data and write back UPN and email.
MIM Integration
MIM is a solution that only offers scheduled jobs and will access an API endpoint at fixed times. The APIs are otherwise always available for queries or updates.
The proposed solution is to set up an API where MIM or other integration jobs can read personal data and update email addresses. The API will consist of two methods: ExportMIMData
and ImportMIMData
. A service provider will often prefer to extract all employees on each call. There is no need or functionality to transfer the entire organizational structure.
Mapping MIM – AD – Simployer
AD Name | Simployer Field |
---|---|
company | Employee in (Ansatt i) |
department | Affiliation (Tilhørighet) |
employeeID | Employee number (Ansattnummer) |
employeeType | Personnel category |
givenName | First name (Fornavn) |
l | Postal code on department |
manager | Immediate manager (Nærmeste leder) |
mobile | Mobile |
physicalDeliveryOfficeName | Department name (Navn på avdeling) |
postOfficeBox | Address line 2 (Adr.linje 2) on department |
postalCode | Postal code on department |
roomNumber | Field does not exist in size and value, but a “Size and Value” can be created in Simployer |
streetAddress | Address line 1 (Adr.linje 1) on department |
sn | Last name (Etternavn) |
telephoneNumber | Mobile |
title | Job title (Stillingsbenevnelse) |
preferredLanguage | Language (Språk) |
Start date | |
Expire date | End date (Sluttdato) |
Template | Template, template user defined as group |
UPN | External ID |
CustomField1 | |
CustomField2 | |
CustomField3 |
API
ExportMIMData
URL: https://simployermim.azure-api.net/MIMFunctions/ExportMIMData
Method: GET
Authentication
Basic auth with username and password.
Headers
Key | Example value | Description |
---|---|---|
X-ITAS-FromUnitId | 3 | Unit |
X-ITAS-UnitIdType | InternalId | Identifier type: DepartmentCode or InternalId |
X-ITAS-IncludeSV | Category:customAttribute1 | SalaryType:customAttribute2 |
x-ITAS-PublicCustomerId | Public customer id | |
x-ITAS-ApiKey | API key | |
Ocp-Apim-Subscription-Key | Subscription key | |
Content-Type | application/json |
Example response body
JSON array with person data:
ImportMIMData
URL: https://simployermim.azure-api.net/MIMFunctions/ImportMIMData
Method: POST
Authentication
Basic auth with username and password.
Headers
Key | Example value | Description |
---|---|---|
Ocp-Apim-Subscription-Key | Subscription key | |
Content-Type | application/json | |
X-ITAS-UpdateUserName | False | Set to true to update user name with adName |
Body
JSON array with MIM import data:
Field description
Field | Max Length / Format | Required | Comment |
---|---|---|---|
employeeID | GUID | Yes | |
adName | Max 100 characters | Yes | |
Max 50 characters | Yes |
Simployer Customizations
The ExportMIMData
method provides an export from Simployer of persons with job information. The most natural location in Simployer is to use the address at the unit level as the location when transferring to the service provider or AD. This means the organizational structure in Simployer must be updated with address information. The postal place represents the location. Location information can be used to control setups such as local printers.
Some service providers use template users to predefine a set of accesses. The suggested solution in Simployer is to create groups representing these template users. These groups can be linked directly to a person and/or to a job position. Some users will require cross-functional access, which will require separate templates.
Preferred language is used to set the default language for the user. In Simployer, this is the language field under account information.
Functionality to activate/deactivate persons can be controlled using the start and end date fields. In AD, there is an expire date which can be mapped to the end date in Simployer.
Prerequisites
Export extracts persons based on employee number
Address must be entered in the organization at the unit level
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article