Skip to main content

Data provisioning

General settings

Business Central does not support deleting accounts. Select the Account deletion unsupported checkbox:

Connector settings

ParameterDescription
Base addresshttps://api.businesscentral.dynamics.com/v2.0/{enviroment_name}/api/microsoft/automation/v2.0/companies({company_id})/
Authentication modeOAuth2
OAuth Grant TypeCustom
URL for Authorization tokenhttps://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token
OAuth Static Token TypeBearer
Auth request bodygrant_type=refresh_token&client_id={client_id}&client_secret={client_secret}&refresh_token={refresh_token}&scope=https://api.businesscentral.dynamics.com/.default offline_access
Auth request content typeapplication/x-www-form-urlencoded
Authentication server response formatJSON
Access Token Locationaccess_token
Authorization headerAuthorization
Content type headerapplication/json
Accept headerapplication/json
Headers{"Request":{"If-Match":"*"}}
Test connectionSelect the checkbox
Test queryusers

Task mappings

Out of the box, Omada provides the following mappings:

Business Central user

Mappings of account assignments to Business Central user assignments. The object is used to update and deactivate user (account).

ParameterOperatorSource
Object IdMapObjectId
Object typeConstantBusinessCentralUser
OperationMapOperation
userSecurityIdExpressionOperation == "Update" ? ROPE_DistinguisedName : null
newUsers[].firstNameExpressionOperation == "Update" && ROPE_Disabled == true ? "Disabled" : "Enabled"

Business Central group assignments

Mappings of group assignments to Business Central users. The object is used to add and delete users in groups.

ParameterOperatorSource
Object IdExpressionObjectId
Object typeConstantBusinessCentralUserGroupMember
OperationMapOperation
userSecurityIdMapROPE_DistinguisedName
codeExpressionOperation == "Create" ? ROPE_ResourceIdentifier : null
userGroupMemberIdExpressionOperation == "Delete" ? ROPE_ATTR_C_USERGROUPMEMBERID : null

Business Central user permission assignments

Mappings of permissions assignments to Business Central users. The object is used to add and delete user permissions.

ParameterOperatorSource
Object IdExpressionObjectId
Object typeConstantBusinessCentralUserPermission
OperationMapOperation
userSecurityIdMapROPE_DistinguisedName
roleIdExpressionOperation == "Create" ? ROPE_ResourceIdentifier : null
userPermissionIdExpressionOperation == "Delete" ? ROPE_ATTR_C_USERPERMISSIONID : null

RoPE configuration

  1. Open the RoPE configuration file:

    • On-prem: \Omada Identity Suite\Role and Policy Engine\Service\ConfigFiles
    • Cloud: In the Cloud Management Portal, navigate to Environments. In the environment row, from the drop-down menu, select Configure. Choose the RoPE configuration tab.
  2. Add the following lines under the Attribute Value Resolver extension (change the key value in case you already have that specific key defined):

    <add key="1" extraInfo="Business Central Group" name="userGroupMemberId" value="C_USERGROUPMEMBERID" />
    <add key="2" extraInfo="Business Central Permissions" name="userPermissionId" value="C_USERPERMISSIONID" />