Follow

Creating JSON file for user import

WHEN 

For those customers where access to users and relationship isn't available in the Active Directory for PRONESTOR Planner, the data can come from any other data source if formatted in the JSON format defined below.

 

WHY

Some customers does not have all users and their group membership reflected in an MS Active Directory, but in another structure/system that holds the security principals of user and groups.

 

HOW TO SOLVE

Data has to be defined using JSON - that consists of attribute-data pairs

Here is an example of a user object and the attribute-data pairs that is must contain:

 [{"GlobalRoles":[0],"LocalRoles":[0,1],"VipRoleMemberships":[],"DepartmentUserMemberships":[],"DepartmentSecretaryMemberships":[],"Login":"kasperh","Lastname":"Hansen","Firstname":"Kasper","Initial":"kasperh","Email":"kasperh@springfield","LegacyExchangeDN":"/o=pronestor/ou=First Administrative Group/cn=Recipients/cn=kasperh","Phone":"","MobilePhone":"29906463","LocationId":2,"Department":"Technical Dept."}]

 Interesting values

GlobalRoles public enum UserRoleType {Booker = 0, FacilityManager = 1, CateringManager = 2, Secretary = 3, Administrator = 5, Receptionist = 6,};
LocalRoles public enum UserRoleType {Booker = 0, FacilityManager = 1, CateringManager = 2, Secretary = 3, Administrator = 5, Receptionist = 6,};
VipRoleMemberships Reference to membership of user_group.usergroup_id that are VIP groups
DepartmentUserMemberships Reference to membership to department.id
DepartmentSecretaryMemberships Reference to membership to department.id which the user is a secretary of
LocationId Reference to default location.location_id

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    René Nielsen

    The filename has to be ImportSet.txt

Powered by Zendesk