question

Upvote
Accepted
196 30 51 55

[JET API or JavaScript] How to check Eikon access permisson?

Hi, Is there a way to check whether a specified user has the access permisson on a specified RIC/Chain (e.g. 0005.HK or .SQUOTA.HS) through JET API or JavaScript? Thanks, Bo
eikoneikon-app-studiojavascriptpermissioning
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
39.2k 75 11 27
Hi Bo, When you subscribe to a RIC the updatedValues parameter returned to onUpdate event handler contains STATUS object. When the user is not permissioned for the RIC the "formatted" property of the STATUS object returns "NOPERM". function onUpdateHandler(subscription, ric, updatedValues) {     if (updatedValues["STATUS"]) {         if (updatedValues["STATUS"].formatted === "NOPERM") {             //user is not permissioned for the ric         }     } } Hope this helps, Alex
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea