Select to view content in your preferred language

experience builder custom widget

427
1
01-22-2024 01:19 AM
universalexb
New Contributor

hi, i have created a custom widget and in the initial load i need to show the arcgis portal login page. after successful login i need to redirect the page to my application. i have successfully don this in my developer version but when i am deployed this in my local server its not working. anybody have any idea?

 

actually the login process i have implemented in the custom widget is to get the current user's groups from portal. when i use 

portal.load().then(function () {
              portal.user.fetchGroups().then(function (fetchItemResult) {}
}
i can get the group info in the developer edition, but when deploy it i am not able to access it. is there any way that i can get the userinfo from protal?
0 Kudos
1 Reply
JeffreyThompson2
MVP Regular Contributor

The props.user object available to all custom widgets should contain all of the information about the user on the Portal. props.user.groups should contain an array of all the groups the user is a member of.

GIS Developer
City of Arlington, Texas
0 Kudos