Solved! Go to Solution.
if(IdentityManager.instance.enabled){ var cred:Credential = IdentityManager.instance.findCredential(lyrURL); if (cred && cred.token){ lyrToken = cred.token; } }
Hi All,
I believe that featureLayer has and userId property, so you can get the userId using this:
featureLayerName.userId. See reference below.
https://developers.arcgis.com/flex/api-reference/com/esri/ags/layers/FeatureLayer.html
Hope this helps.