In this release
Significant changes are made in ProptechOS security and user management areas. Apart from resource permission policies users can be granted administration roles.
ProptechOS is also introducing the Preview API. This API will include endpoints that are
- not necessarily following RealEstateCore of any version
- not necessarily supported long term
The intention is for experimental features to be available early in the Preview API, before they are graduated to the main API.
New functionality
Roles
In order to allow ProptechOS users to self-administer – a new security entity ‘Role’ is introduced. Any user who is granted with admin roles can share their roles or lower privilege roles with any user within their administration scope via ‘grant’ endpoint
Property Owner Admin
PropertyOwnerAdmin – is responsible for user and resource management in the scope of the whole Property Owner. This role allows users to invite new users to the ProptechOS, list all persons, edit persons and remove persons that belong to the Property Owner. PropertyOwnerAdmin will be able to manage resource permission policies that belong to the Property Owner in future releases.
PropertyOwnerAdmin is created and assigned during the self sign up procedure while a new Property Owner is created.
Organization Admin
OrganizationAdmin – the main role that is responsible for user and resource management in the scope of single Organization. This role allows users to invite new users to the ProptechOS, list all persons, edit persons and remove persons that belong to the Organization. OrganizationAdmin will be able to manage resource permission policies that belong to the Organization in future releases.
Existing users can request to be granted the OrganizationAdmin role by contacting ProptechOS Onboarding team ([email protected]).
Schema
Person twins will now have the following json format:
Where:
- ‘resourcePermissionPolicies’ – includes a list of resource permission policies (RPP) that person has access to (Read-only);
- ‘roles’ – includes a list of roles that person is granted with (Read-only);
New person management endpoints are added:
- PUT /json/person/{id}/grant/rpp – grant person with resource permission policies;
- PUT /json/person/{id}/revoke/rpp – revoke from person resource permission policies;
- PUT /json/person/{id}/grant/role – grant person with roles;
- PUT /json/person/{id}/revoke/role – revoke from person roles;
All mentioned endpoints accept person id as query parameter and list of the resource permission policy ids or role ids correspondingly as a request body.
Preview API
This API is implemented as a separate OpenAPI definition in the same Swagger UI.
You can see a new dropdown in the swagger header.
By clicking the “Select a definition”-dropdown you can explore either the general API (“API”) or Preview API. The general API is selected by default.
IoT Hub device twin
New endpoint in Preview API, that returns Iot Hub device twin.
GET /preview/json/device/{id}/iothubtwin
Connection information in Property Owner
In this release we add new property to a Property Owner – iotHubHostname
Now you can retrieve all the needed information for creation of the iot hub device connection string using our REST API.
Breaking changes
None.
Fixes and minor updated
Performance improvements.