I have an app in DotNetNuke. I would like to retrieve the list of user roles in header javascript, and check to see if it has "Administrators" role. What is the best way to do that?
DNN - getting user roles in javascript
294 Views Asked by Harriett Xing At
1
There are 1 best solutions below
Related Questions in DOTNETNUKE-7
- Implement 3-D Secure Payment authentication in DotnetNuke DNN 7
- How to add a new user profile field to Dnn?
- DotNetNuke SMTP not working Register new User
- Unable to save content DNNConnect.CKE html editor (DNN)
- Need to change header link href from Dotnetnuke 7 C#
- Dot Net Nuke site landing page loading more time for the first time
- DNN Site azure DevOps build pipeline error
- DNN CSM site azure DevOps release pipeline setup
- DNN module error after trying to move it from dnn7 to dnn9
- Expected behaviour with Basic Authentication bad credentials
- DNN Live Articles - Article published by itself
- Dotnetnuke community installation
- Dnn Module is not appearing in view mode
- How would I upload a zip file to the File Manager without unzipping it (need it to stay as a zip file)
- How to find the various fields of User object in DNN 7.2
Related Questions in DOTNETNUKE-5
- Dot Net Nuke site landing page loading more time for the first time
- DNN legacy migration yields "object reference not set to an instance of an object"
- DNN Version 5.6.2 on windows server 2012 r2
- DNN - getting user roles in javascript
- DNN Upgrade Module From .Net 3.5 to .Net 4.6.1
- How to set Module 'In Use' in DNN Installation.?
- DNN-display list of products
- How to change value in base.settings[""] in DNN
- DotNetNuke | is license required
- Need to customize DNN 8 Modules and Skins
- How to install new skin(Theme) in DNN 8 and activate it? I have tried this but it install the skin but not activate
- Telerik + RadChart: How to call a Server side Method on ClientSeriesClick Event
- add custom module to a published dnn site
- I want to anchor tag on my dotnetnuke site and when any one click on that it redirect to another website with all user information bia url
- Need guidance in debugging this DNN issue
Related Questions in DOTNETNUKE
- Low Precision and Recall in LSTM Anomaly Detection Model
- Totally lost with Mobius Forms v5 on DNN
- Linq with strong typed data in 2sxc
- SearchBoost UrlFriendly Unwelcome Display
- Oqtane and Blazor-CMS on Windows using a remote PostgreSQL DB
- RequestVerificationToken not present when trying to export an app
- DotNetNuke Journal Module - User Profile Layout Discrepancy Between English and Italian Versions
- Can I get List Sort Options on a 2sxc App?
- 2sxc v14 to v16 Upgrade Issue: "Error trying to run ZoneIdOfApp(-100) - probably something wrong with the appId"
- How to visualize Deep learning framework using Keras package with R?
- Contenttype in 2sxc gives: The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'
- Using 2SXC behind a reverse prox
- Multiple DNN 9.11.0 sites on server all generating "unexpected error occurred on a send" General Exceptions
- Detect if 2sxc Module is the Original or from IRenderService
- DNN 9.13.01 on Windows Server 2019 throws null reference exception when installing extension
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could do something like this
And the client side function. The variable
jsonnow is an Array with all the roles.