Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
App Studio
[JET API or JavaScript] How to check Eikon access permisson?
Bo Feng
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
Find more posts tagged with
javascript
eikon
permissioning
eikon-app-studio
Accepted answers
Alex Putkov.1
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
All comments
Alex Putkov.1
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
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act