You are viewing limited content. For full access, please sign in.

Question

Question

Getting Repository Users Using SDK

SDK
asked on September 24, 2023

Hello All, 

Coud you help me how to get Repository Users using SDK ?

 

Thanks 

0 0

Answer

SELECTED ANSWER
replied on September 27, 2023

This should get you started. It loops through each member of each group.

Using oAccountinfoR As AccountInfoReader = Account.EnumGroups(oLFSession)
    For Each oAccountInfo As AccountInfo In oAccountinfoR
        Select Case oAccountInfo.TrusteeType
            Case = TrusteeType.LaserficheGroup
            Case = TrusteeType.LaserficheUser
            Case = TrusteeType.WindowsAccount
            Case = TrusteeType.LfdsAccount
            Case = TrusteeType.LdapAccount
            Case Else
        End Select
    Next
End Using

If you have the account name or account ID or acocunt SID then you can do something like this:

dim oAccountInfo As AccountInfo =Account.GetInfo(strAccountName, oSession)

Hope that helps.

-Ben

1 0
replied on September 27, 2023

Thanks a ton

1 0

Replies

replied on September 26, 2023

Do you mean current sessions, or registered users?

0 0
replied on September 26, 2023

I mean get all users registered  to repository .

so I can manage them .

thanks 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.