Profile picture for user MoellerBennet

Hi,

I have a Report in which I have an Array of UserGroups and I would like to get the Groups UserList, but I always get a NullPointerException when trying to do so.

Using Methods inherited from Item works, but all UserGroup methods end up in a NullpointerException...

Do you have any ideas what I might be doing wrong?

Kind regards, Bennet

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 09/01/2022 - 14:15

Does you user have function right "User Management" ?

I think if not, this could be the cause...

0
by Bennet Möller Author
Posted on Thu, 09/01/2022 - 15:49

In reply to by rgoldenbaum

Hi Robert,

thank you for your answer!

Sadly this is not the cause, because my user does have the function right. My user gets it via UserGroup, not by itself, if that makes a difference...

Kind regards,

Bennet

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 09/01/2022 - 16:15

And do you have an Architect licence or perhaps "just" a Designer ?    Could also make a difference... 

0
by Veronika Ellermann
Posted on Fri, 09/02/2022 - 10:23

Hi Bennet,

Who executes the script? Is e.g. the arisservice user involved?
In that case that user also requires the functional right.

Best,

Veronika

0
by Bennet Möller Author
Posted on Mon, 09/05/2022 - 07:21

In reply to by Vee_ARIS

Hi Veronika,

thank you for the reply! In this case I am executing the script with my own user. 

Best regards, Bennet

0
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Fri, 09/02/2022 - 15:32

Hello Bennett,

if you look up the usage of the methods oUserGroup.Userlist() or oDb.Userlist(oUserGroup) on your server you might be surprised to find none.

One reason for Userlist() not working in your context might be solved by my former post.

Developers of the SAG standard report for UMC "Output user groups with users and privileges" preferred Report class UMC - Method getAssignedUsersForUsergroup

Other examples to evaluate user groups were given here

Regards, Martin

0
by Bennet Möller Author
Posted on Mon, 09/05/2022 - 08:03

In reply to by smarty

Hi Martin,

the UMC Class is a real lifesaver, thank you! That saved me a lot of time and code.

Best Regards, Bennet

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock