By: Jajati Badu Account Admin 26 May 2017 at 9:07 a.m. CDT

9 Responses
Jajati Badu gravatar
I am trying to access "User Permission" for an user getting Get-user-Info command. I have set the claim in profile scope and there is value for "user permission", for the user. Please find the screenshot However I am not getting "User Permission" as response from Get-user-Info command. Please could you let me know the way to get this value ? I am getting other fields

By Aliaksandr Samuseu staff 26 May 2017 at 9:13 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, Jajati. Could you please show screenshot of this "User Permission" attribute's properties page? Have you assigned it some claim name there? If you haven't, you can't use it in OIDC flows.

By Mohib Zico Account Admin 26 May 2017 at 9:18 a.m. CDT

Mohib Zico gravatar
There is a field named 'oxAuth claim name' for all attributes ( User Permission ) for your case. See if that's blank?

By Jajati Badu Account Admin 26 May 2017 at 9:20 a.m. CDT

Jajati Badu gravatar
Hi Aliaksandr/Mohib, Thanks for the quick response. I have already attached the screenshot in this ticket. I am not sure why you are not able to see the attachment. Yes I have assigned User permisison value to "internalteam" Kind Regards, Jajati

By Aliaksandr Samuseu staff 26 May 2017 at 9:25 a.m. CDT

Aliaksandr Samuseu gravatar
It's not about value. Please post screenshot of the attribute's properties you can find on "Configuration -> Attributes" page, where you registered it before. As Zico says, you had to assign some name to "oxAuth claim name" property of your attribute.

By Jajati Badu Account Admin 26 May 2017 at 9:27 a.m. CDT

Jajati Badu gravatar
I can see this at Configuration? Attributes User permisison role gluuPerson gluuPermission

By Jajati Badu Account Admin 26 May 2017 at 9:31 a.m. CDT

Jajati Badu gravatar
Attached the screenshot of Configuration> Attributes

By Aliaksandr Samuseu staff 26 May 2017 at 9:38 a.m. CDT

Aliaksandr Samuseu gravatar
You need to click on the respective attribute to get to its properties. In the list of properties, you'll need to find "oxAuth claim name" and make sure it's assigned a value (which will be name of OIDC claim representing this attribute). You can learn more about attributes [here](https://gluu.org/docs/ce/3.0.1/admin-guide/attribute/)

By Jajati Badu Account Admin 26 May 2017 at 9:52 a.m. CDT

Jajati Badu gravatar
Thanks a lot. Auth claim name was empty. I tried to assign a value "role" . And when I click update, I get "value required" error message Kind Regards, Jajati

By Aliaksandr Samuseu staff 26 May 2017 at 10 a.m. CDT

Aliaksandr Samuseu gravatar
You are welcome. > And when I click update, I get "value required" error message Please pay attention to the notifications on the page. It will mark fields you must fill in before persisting your changes with exclamation sign.