Skip to main content
Oct 16, 2015 2:28 AM UTC
Solved

How to set access for created users programatically

Hi CQ5 Experts,

 I have few question regarding user management

 1.  I have created user in site admin and the user is created under home/users list.But i couldn't login by using created user.Once i assigned the access resource for that created user in AccessControl tab i can able to login.How its happening ????

 2.Same way I created user programatically  using UserManager and AccountManager API .User is created successfully.

    Now i want to assign the access for that created user programmatically ??? Is it any possible ways for doing that?? Please suggest me how to achieve this.

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Yogesh_Upadhyay
Yogesh_UpadhyayAccepted solution
Level 6
Oct 16, 2015 2:28 AM UTC

Sridhar,

I guess it is same question about assigning ACL to Principal (User or Group). Here is example http://wemcode.wemblog.com/add-acl-to-node. Best practice is,

1) Create Group (Or roles)

2) Assign ACL to Group

3) Create User

4) Assign User to Group.

Yogesh

3 replies

Oct 16, 2015 2:28 AM UTC

Sridhar wrote...

Yogesh Upadhyay wrote...

Sridhar,

I guess it is same question about assigning ACL to Principal (User or Group). Here is example http://wemcode.wemblog.com/add-acl-to-node. Best practice is,

1) Create Group (Or roles)

2) Assign ACL to Group

3) Create User

4) Assign User to Group.

Yogesh

 


Thanks man.It will be helpful.

 


I think jack rabbit is not recommended.how it possible in DAY API???

Translate
Oct 16, 2015 2:28 AM UTC

Yogesh Upadhyay wrote...

Sridhar,

I guess it is same question about assigning ACL to Principal (User or Group). Here is example http://wemcode.wemblog.com/add-acl-to-node. Best practice is,

1) Create Group (Or roles)

2) Assign ACL to Group

3) Create User

4) Assign User to Group.

Yogesh

 


Thanks man.It will be helpful.

Translate
Yogesh_Upadhyay
Yogesh_UpadhyayAccepted solution
Level 6
Oct 16, 2015 2:28 AM UTC

Sridhar,

I guess it is same question about assigning ACL to Principal (User or Group). Here is example http://wemcode.wemblog.com/add-acl-to-node. Best practice is,

1) Create Group (Or roles)

2) Assign ACL to Group

3) Create User

4) Assign User to Group.

Yogesh

Translate