onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

API user rights check #676

Open fredericalpers opened 11 months ago

fredericalpers commented 11 months ago

Initiative

Improve the usability of the onOffice for WP-Websites Plugin for a better user experience.

Epic

Implement a API user rights check.

User story

As a real estate agent using the onOffice for WP-Websites Plugin, I need a healthcheck feature that not only validates the correctness of my API token and secret but also ensures that my API user rights are configured accurately. This additional check will help prevent issues such as missing property data or contacts not displayin properly on my website due to incorrect user rights settings.

As part of my real estate business, I rely on the seamless integration between my onOffice enterprise account and my WordPress website through the onOffice for WP-Websites Plugin. While entering the API token and secret is crucial, its equally vital that the API user rights are configured correctly. Misconfigured rights can lead to data inconsistencies and hinder the smooth operation of my website.

I request the implementation of an API user right check in the plugin. This check should alert me when the API user rights are not set correctly, preventing potential disruptions in data transmission.

https://apidoc.onoffice.de/actions/datensatz-lesen/read-user-rights/

By implementing this API user right check, the onOffice for WP-Websites Plugin can offer real esatet agents a proactive way to ensure the correct configuration of API user rights, minimizing disruptions in data transmissions and contributing to a more reliable and user-friendly experience.

Tasks

• Develop logic for checking the correctness of API user rights. • Integrate the necessary modifications to the backend settings interface to accomodate the new API user right check functionality. • Implement real-time feedback mechanism to provide immediate alerts when API user rights are inccorectly configured. • Develop a notification mechanism to alert users immediately if the API user rights are not configured correctly.

Process Design check-api-user-rights (1)

Button Test API user rights button-test-api-user-rights (1)

API user rights check feedback button-test-api-user-rights_results (1)

dai-eastgate commented 10 months ago

@fredericalpers For this issue, I am working on it and will get back to you soon.

yeneastgate commented 10 months ago

@fredericalpers We are facing a similar issue as mentioned before: https://github.com/onOffice-Web-Org/oo-wp-plugin/issues/663#issuecomment-1835724602 This API "https://apidoc.onoffice.de/actions/datensatz-lesen/read-user-rights/" be used to read out user-rights image

However, the value passed in "userid" is the ID of "API-User" and cannot be obtained through "API secret" and "API token" in admin settings. image

Please check with the IT department about the feasibility of obtaining "userId" through "API secret" and "API token"? => So we can continue investigating, planning, and estimating time.

fredericalpers commented 10 months ago

@yeneastgate I will check and let you asap :)

fredericalpers commented 9 months ago

Unfortunately this feature is blocked for now...