Getting groups from logged in user in portal

387
1
Jump to solution
01-08-2018 11:50 AM
KarstenRank
Occasional Contributor III

Hi there,

I try to get all groups from logged in user of Portal.

portal.signIn().then(function (loggedInUser) {     
var myArray = [];     
myArray = loggedInUser.getGroups;          
})‍‍‍‍‍‍‍‍‍‍‍‍

The user (normal user) is member in two groups, but the result I get is 0.

Thanks for your help,

Karsten

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Karsten,

   The method getGroups returns a deferred too.

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Karsten,

   The method getGroups returns a deferred too.

0 Kudos