cancel
Showing results for 
Search instead for 
Did you mean: 

UME API : only the first 5000 users of a group are retrieved

Amey-Mogare
Contributor
0 Kudos

Hello All,

I am using UME API inside my portal component DC and reading list of users who are part of a group.

In our portal landscape, there are many groups that have more than 5000 users.

I noticed that when I call method to get all users for a group, it is only returning first 5000 users of that group.

(Iterator<String> userIter = group.getUserMembers(true);)

This is I guess some kind of limitation in SAP UME framework.

Any solution, workaround you can think of with which I can get 'ALL' users for a group?

Thanks & Regards,

Amey

Accepted Solutions (1)

Accepted Solutions (1)

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amey,

Hope you are doing good.

Nice to hear from you again.

Are you retrieving from LDAP backend? The reason I am, asking is cause we have seen issues with the property "MaxValRange" not set.

Please have a look at the below link:

https://my.opswat.com/hc/en-us/articles/203730784-Set-LDAP-query-to-return-more-objects-maxvalrange

   

Hope this helps.

_ _ _ _ _ _ _ _ _

Kind Regards,

Hemanth

SAP AGS
_ _ _ _ _ _ _ _ _
 

Amey-Mogare
Contributor
0 Kudos

Hello Hemanth,

Thanks for reply. I am doing good. I hope all is fine at your end as well.

Yes, the groups that I refer in my question are AD groups.

I went through the link you shared.

So setting this MaxValRange property at AD side to, say 10000, would just solve the problem for a while.

And if in future if there are more than 10000 users in this group, then again we'll face this issue.

Am I right?

Thanks & Regards,

Amey

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amey,

That is true. DATA is fetched from LDAP, so settings need to be fine on both end. So on the LDAP< set the MaxValRange correctly and as Vincent stated, on the UME end, set:

ume.admin.search_maxhits
and

ume.admin.search_maxhits_warninglevel

Hope this helps.

_ _ _ _ _ _ _ _ _

Kind Regards,

Hemanth

SAP AGS
_ _ _ _ _ _ _ _ _

Amey-Mogare
Contributor
0 Kudos

Thanks a ton Hemanth.

Answers (1)

Answers (1)

former_member202734
Participant
0 Kudos

Hello,

may be the settings under System Admin -> System Configuration -> UME Configuration.  Then select tab User Admin UI.  There is a parameter "" you can change:

But I don't know if this parameter has an impact on custom developments...?

Best regards.

Vincent

Amey-Mogare
Contributor
0 Kudos

Hello Vincent,

Thanks for reply.

If we set this property to some higher value, that would again be some limitation that we might reach in future, right?

Is there any way to read users from a AD group by paging?

Thanks & Regards,

Amey

former_member202734
Participant
0 Kudos

Hello,

I know that this settings have direct impact on User Admin iView.  For development (access via API) I don't know.  As you can see in my print screen I have increased the limit to 10.000.  Doing this (in Dev. Portal) I was able to export groups/users in flat file.  Then I can work (Excel macro) on it.

For your last question... I don't know.  Sorry.

Regards.

Vincent

Amey-Mogare
Contributor
0 Kudos


Hello Vincent,

Many thanks for your replies.

Thanks & Regards,

Amey