sullisnyc44
asked on
Set audience targeting programmatically
someone pointed me to this blog but I still need further guidance:
http://www.sharepointkings.com/2010/02/set-audience-targeting-programmatically.html
I don't understand where to put the code snippet in the post.
also I don't understand what this means:
"We first take our web context and then take out the default.aspx web parts..."
Am I editing something in designer?
http://www.sharepointkings.com/2010/02/set-audience-targeting-programmatically.html
I don't understand where to put the code snippet in the post.
also I don't understand what this means:
"We first take our web context and then take out the default.aspx web parts..."
Am I editing something in designer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah - the unfortunate thing about that project is that there is NO SUPPORT.
I believe (according to the discussions that there are issues when setting multiple permissions.
Have you used it? I need the following things to happen:
1. the authorizedBy people picker single field value needs to have permission to submit the item
2. the requestedby people picker single field value needs to have permission to edit and approve the item
3. a sharepoint group created on the site called 'Attendance Managers' needs to have access to the item (basically all items)
If you have set item permissions using to multiple values, including a group.
I believe (according to the discussions that there are issues when setting multiple permissions.
Have you used it? I need the following things to happen:
1. the authorizedBy people picker single field value needs to have permission to submit the item
2. the requestedby people picker single field value needs to have permission to edit and approve the item
3. a sharepoint group created on the site called 'Attendance Managers' needs to have access to the item (basically all items)
If you have set item permissions using to multiple values, including a group.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nope - not always the creator
how should my permissions be set up then?
I have read access - all items (get an error about folders if I change it)
edit - only their own
how should my permissions be set up then?
I have read access - all items (get an error about folders if I change it)
edit - only their own
ASKER
how do I remove the default access to view by everyone?
remove access for visitors?
remove access for visitors?
ASKER
plus if I right click and look at Manage Permissions, nothing has changed.
on workflow step I added delete permission assignment for Home Visitors...
and everyone can still see everything
on workflow step I added delete permission assignment for Home Visitors...
and everyone can still see everything
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hmmm do you thing the issue is with 'Absences'? Is it somehow not grabbing the item id?
ASKER
I think I finally have something (kind of) working!
I DID have to change the Requested By to Contributer and not reader but that makes sense. might also have something to do with because I was both the requester and manager name.
Maybe I will just write another workflow 'when the item has changed' if I don't want to let the user edit the the request again... that I will figure out.
I WAS getting this error on the workflow, but it IS changing permisions:
Status: Failed on Start (retrying)
but once I changed requested by to Contribute instead of reader it fixed this issue.
HERE IS MY LOG:
Absence Type: Pending Approval
Email Manager
removing attendance requesters
Grant Contribute Permission on Absences to Attendance Managers
Granted CONTRIBUTE permission to Manager: domain\username
Granted CONTRIBUTE permission to Requester: domain\username
workflow complete
I really can't thank you enough - this REALLY helped me out.
I DID have to change the Requested By to Contributer and not reader but that makes sense. might also have something to do with because I was both the requester and manager name.
Maybe I will just write another workflow 'when the item has changed' if I don't want to let the user edit the the request again... that I will figure out.
I WAS getting this error on the workflow, but it IS changing permisions:
Status: Failed on Start (retrying)
but once I changed requested by to Contribute instead of reader it fixed this issue.
HERE IS MY LOG:
Absence Type: Pending Approval
Email Manager
removing attendance requesters
Grant Contribute Permission on Absences to Attendance Managers
Granted CONTRIBUTE permission to Manager: domain\username
Granted CONTRIBUTE permission to Requester: domain\username
workflow complete
I really can't thank you enough - this REALLY helped me out.
ASKER
just trying to restrict acces to a particular view. someone suggested audience targeting and dvwp.
I have an attendance list that I need to restrict access to items (not always determined by the Author or Create By user)
I have filtered all of the views based on [Me]
but I need to mangers to be able to view All Items.