on 02-28-2017 9:18 AM
Hello 🙂
I want to build a HTML5 app for my HCP wich is aware of roles/permissions of an user.
With security constraints and permissions one is able to create restricted areas of the application. If one does not have the right permission, one is not able to access the specific area.
But how is it possible to check which permissions an user has?
Example:
An app where one has to login to see details of whatever. If one has the role of an editor, one should see a button "edit". If one does not have this role (or permission), the button should not be visible.
How am i able to check this kind of user attributes? (because they are not included in the attributes /service/userapi/attributes or /currentuser)
thanks in advance 🙂
Edit:
I don´t mean how to assign roles to permissions, but how to check which permissions the specific user has while using the app.
Please Tell me how you had done it ,
i am also stucked in this Problem..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got is working... replaced the ?$ with just ?
/services/userapi/attributes?multiValuesAsArrays=true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
Did you get an elegant solution to this (along the lines of using user api services)??
There is mention of a URL parameter multiValuesAsArrays. i tried using:
/services/userapi/attributes?$multiValuesAsArrays=true
but i cant get this to return an array of user_groups
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
roles for a user can be checked in the SAP CLOUD PLATFORM Cockpit (see 4. 😞
Alternatively, you can do it using the Authorizations section for the account.
Permissions for an HTML5 application are defined in the application descriptor file. This is done by the developer so far as I know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer, but this is not what i meant.
I have created roles and groups in the cockpit and also permissions in the applications descriptor file. They are also "connected".
But I want to know, which of these roles/permissions the specific logged-in user has while using the app. Some variables to check or something. An array of permissions, a path, json or whatever.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.