View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Specific Access Rights api endpoint - ProjeQtOr
 

Specific Access Rights api endpoint

More
20 Apr 2026 10:46 #1 by rafall92
Hello. Im preparing tool which help me to manage user profile right change(monitoring script). We have many user which can manage those rights, so we want to be informed about changes. We want to know, which right was changed and what was previous and changed value, so firstly we prepared json files with current values. I can easly handle all data except Specific Access
I try to download data which is available under this tab on projeqtor. To do that i call api endpoint 

api/habilitationOther/all

But I can't process data as i wish. Data i receive looks like this

{
  "id": "100",
  "idProfile": "2",
  "nameProfile": "Supervisor",
  "scope": "canUpdateCreation",
  "rightAccess": "2"
}

Comparing to endpoint habilitation there is no property which can give me Full name of this right which is: Can update creation information. Also rightAccess is depend on scope, which means any other right can have same right value, but in different scope text value will be different. E.g. No resource, None visibile, Yes have same value: 1

Is there any api endpoint which give me full right name and correct right name based on scope? Or i have to prepare this data manually and have it hardcoded in my script?

Please Log in or Create an account to join the conversation.

More
02 May 2026 15:06 #2 by babynus
Specific access is defined on objet of class HabilitationOther.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
07 May 2026 11:36 #3 by rafall92

babynus post=39768 wrote: Specific access is defined on objet of class HabilitationOther.

 

Yes. I know that. But my question was different.
One object of class habilitationOther look like this:

{
  "id": "100",
  "idProfile": "2",
  "nameProfile": "Supervisor",
  "scope": "canUpdateCreation",
  "rightAccess": "2"
}

How can i get correct rightAccess value. Because value 2 doesn't say anything. Comparing to class habilitation. We have:

{
  "id": "1",
  "idProfile": "1",
  "nameProfile": "Administrator",
  "idMenu": "14",
  "nameMenu": "Environmental parameters",
  "allowAccess": "1"
}

Having this, i can call endpoint api/AccessProfile/search/id=1 and assing property name. And similar ror idMenu api/Menu/search/id=1
How can i do the same for habilitationOther? Because rightAccess is not the same as allow access, and this value is depend on scope, which mean, different scope, can have different rightAccess with same id. The same for scope. How can i resolve valiue canUpdateCreation form json returned by api to value  Can update creation information which is visible on GUI

Please Log in or Create an account to join the conversation.

More
14 May 2026 17:26 #4 by babynus
Corresponding values are stored in accessscopespecific

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
15 May 2026 13:41 #5 by rafall92
Yes, i get this. But my problem is not fully solved.

{
  "id": "1",
  "name": "No resource",
  "accessCode": "NO",
  "sortOrder": "100",
  "idle": "0"
}

I still don't know how can i get Can update creation information(this is value on web page) from this canUpdateCreation(this is value from json). 

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.043 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.