You need to sign in to do that
Don't have an account?

How to assign users to a particular record??
hi friends,
i have created a object named as Job,
i want to assign roles(different different users) for particular job record .
is it possible??
give me some idea about userrole... and how to user vf and apex in case of userrole?
Do you want that job to be shared or accessed by that perticular group of users, right?
You can goto admin setup--> manage users--> roles
create a role there and assign users to that role.
Then goto admin setup--> security control-->sharing settings--> job object
Edit settings for Job object and make it private.
Save setting.
Then foto the related list "Job sharing rule".
Create new sharing rule give access to that role...
So, now, only users of this role will be able to see your job record.
Through apex class also it can be done...
But see if it solves your problem through config...
Thanks,
Aruna Lambat
All Answers
You might want to look into Apex Managed Sharing, depending on the level of control you. There is a good example in the Apx help docs.
Do you want that job to be shared or accessed by that perticular group of users, right?
You can goto admin setup--> manage users--> roles
create a role there and assign users to that role.
Then goto admin setup--> security control-->sharing settings--> job object
Edit settings for Job object and make it private.
Save setting.
Then foto the related list "Job sharing rule".
Create new sharing rule give access to that role...
So, now, only users of this role will be able to see your job record.
Through apex class also it can be done...
But see if it solves your problem through config...
Thanks,
Aruna Lambat