Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

user creation and assigning user to existing group

Avatar

Level 2

Hi all,

I have tried hands on creating user using .net but one thing which is not done is - assigning existing group(s) to the user.

http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000005.html

anyone please help me.

thanks in advance

4 Replies

Avatar

Former Community Member

Hi Quioske,

You add an existing user to an existing group by the following API,

directoryManager.addPrincipalToLocalGroup(String principalOid, String localGroupOid)

You assing an existing role to an existing user(s) by the following API,

authorizatonManager.assignRole(String roleId, String[] principalOids)

Avatar

Level 2

Hi ,

thanks for the reply

Can you please forward me any example using dotnet, I am executing the code from a remote computer which doesn't have live cycle.

Live cycle is on server.

How to get group oid and useroid

If I have a group like "gemini", how can I search gemini and assign it to a user

please forward me the code for the remote execution using dotnet , appreciate if you could forward me with comments

Thanks for the reply in advance

Avatar

Level 2

is there anyone who can reply for the query