gs.hasRoleExactly('itil') is returning undefined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 10:59 PM
Hi All,
gs.hasRoleExactly('itil'), is returning undefined. But gs.hasRole('itil') is returning true please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 11:17 PM
Hi @Sachin G K1
Please refer below link.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 11:22 PM
Hi @Sachin G K1 ,
Could you please share the screen shot of reference qualifier ? and could you please clarify what you are trying to achieve?
Please check and Mark Helpful and Correct if it really helps you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 11:26 PM
Its not related to field, i have called the script include in 'cancel' ui action on change request table to achieve some requirement. Meanwhile i used, gs.hasRoleExactly but is not returning true/false. However gs.hasRole working fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 11:31 PM - edited 03-04-2024 11:32 PM
Hi @Sachin G K1 ,
You cant ! you only have client side api for hasroleExactly(); you cant use it on client side...
on server side you can only use gs.hasRole(); to check for roles , i hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 11:59 PM - edited 03-05-2024 12:01 AM
Sorry i didn't get, i had recently used gs.hasRoleExactly() in acl script it was working fine