how to add image to a user in active directory? - sharepoint

I have a custom list in which there is one column as employee which has datatype as 'person or group' in sharepoint 2010. now i want the picture of users in peaplepicker box of employee. How can i do this.
Also i want to know how to add image to a user in active directory.

Thier are two aspects of your problem first to add images to profile for that you would have to update users profile in sharepoint or active directory with his pictures.
second part where you want to show image of a person with people picker. for this you would have to create a custom people picker follow the code provided in article below to create custom people picker field type
1. this post will provide help how to customize people picker
http://panvega.wordpress.com/2008/02/22/custom-sharepoint-people-picker/
2. this post will provide help to create new field type
http://www.alectang.com/blog/archive/2009/11/23/creating-custom-field-type-in-sharepoint-list-50.aspx

Does sharepoint use the thumbnailphoto/jpegPhoto attribute?
If it does you can use powershell to update the image file. (TechNet Forums)
[byte[]]$jpg = Get-Content c:\photo.jpg -encoding byte
$user = [adsi]"LDAP://cn=user1,cn=users,dc=domain,dc=loc"
$user.Properties["jpegPhoto"].Clear()
$null = $user.Properties["jpegPhoto"].Add($jpg)
$user.CommitChanges()

Related

Sharepoint list with attachments in columns

I need to create list of products (with details like date of orders, etc). But I want to also add files for each product, like order document, leaflet, etc and of course I want to have possibility to filer/group by files. I try to create column with files in, but I fail. Maybe I can link somehow documents from Library to items in list?
Can someone help me?
thanks
I got the feeling the best solution to use here would be document sets. It is both for SP onPrem and online
Basically a document set is like and item with metadata and a folder for files at the same time.
Update1
for SharePoint Online (onPrem the steps are very similar, just the look and feel is different)
go to sitcollection features and activate document set feature.
go to content types settings in sitecollection settings and create a new content type
when creating content type make the content type inherit from document set content type
then add some columns (like text fields, datetime pickers etc. whatever is needed, You may also have status column)
after that in the document library You want to use the document set go to list settings and in advanced settings turn on content type management
add the new document set content type (You may also add this ct as default one)
when adding new item select the new content type. You will have the new form with all the defined columns, In the item You may add files like You would add them to the folder. Being in the item You may see the properties in the right property pane
I hope this solution is what You need :). I think it is the best OOTB solution that I can think of for Your problem.
Update2
please also check this link for a similar step by step instructions but with screens.

How to get current user's custom information and show it on any screen?

I had made a custom field 'warehouse' on User screen(SM201010), and saved some text in this field to the user 'user1'.
The question is when I login as the user1. How can I display the 'warehouse' field on any screen else?
I had try AccessInfo, but dont know how it works. Please help! Thx!
AccessInfo contains basic information on the current user, but adding a custom field to the User screen will not add it as a member of AccessInfo.
If you added a custom field in a DAC Extension, you will need to fetch the User record, get its extension and then you can access this custom value.
Here are some links about extensions :
https://docref.acumatica.com/(W(1))/Wiki/ShowWiki.aspx?pageid=3a427466-1925-4799-8fee-fe34a77021d0
https://docref.acumatica.com/Main.aspx?ScreenId=ShowWiki&pageid=114ae5af-8667-4933-b53d-c4c8667c85ac
I highly suggest you complete the T300 certification class which teaches how to do customizations in Acumatica. It is available in our Open University

Sharepoint Site with Excel Sheet Template for Users to create New Sheets

I am tasked in work with creating a share-point site.
Here are my requirements:
The main page must allow the user to create a new "File".
The file must be an excel sheet template that i will style to my liking.
After the user creates a new "File", the Excel sheet is opened in the webpage for them to edit. They can save it and reopen later.
Many other users will create new "files" also - same process - same template. If i change the template then any new files use the new template.
When files are created the user must put it into a section that high level describes the location of our plant that the "file" is relevant for . e.g Some users will put files under the "Company Shipping category" category and others the "Company receiving category".
Any user can search any or all "files" for full textual searches and also within categories of our company plant (as described in item Above)
Is all this possible and what is the easiest method - Any examples of this would be great.
Thanks,
Damo
This is all built in SharePoint functionality. You can create a document library with a default file template using excel. The document library can have added columns called metadata to track the high level descriptions. SharePoint has built in search functionality.
The best way is to get a SharePoint administration book and start reading. There are also a lot of contractors that specialize in setting up SharePoint.
EDIT:
Here is a tutorial video and here is the second part on setting up a document library and adding advanced features like metadata columns.

How to display notes in opportunity form of mscrm 2011?

I need to display account notes across all opportunities. typically a MSCRM creates a blank Notes section for each new Opportunity you create inside a account, but I need to display a running Account dialog of conversations to review in one continues notepad (means display all notes).
Can anyone tell me how I can display all notes in the opportunity form?
Is this possible without coding (or in fact, with coding!)
Thanks in advance,
SD
Well you can do this a few different ways.
1) The easiest way is to add an IFRAME and then point to the applicable Account notes container. You'd have to set the "id" attribute based on the account. Here's what your IFRAME url will look like:
/_controls/notes/notesdata.aspx?EnableInlineEdit=true&EnableInsert=true&id=%7bEF88BCAA-C3EB-E111-B142-78E7D162EE67%7d&ParentEntity=1
2) If you are only wanting to display the notes and not allow for a user to edit them (read-only), then you'll need to use fetch to query the annotations where the related id equals the account.
Just to be clear the on requirement here.
I believe you are saying: Each Account has multiple Opportunities, each Opportunity has many Notes. On the Account you want to show all the Notes for all the Opportunities.
I don't think you can achieve this with out of the box functionaility, I would suggest creating an SSRS report and iFrame'ing it in.

How can i retrieve the value "Created By" in a customised SharePoint 2007 Edit Form

I have created a Custom Edit Form for a custom list using SharePoint designer. I need to check that the current user is the author of the list item before displaying the form as only the author should be able to edit this content. I don't have server access so want to do this in the form itself using XSL. So far, I haven't been able to retrieve the Author / Created By value. Does anyone know how to get at this value?
Thanks for your help
Iain
Update:
I can see now that the Edit Form is using a datasource which basically returns a view containing all fields in the content type. "Author" is not part of the content type (which is a custom one). I can't see any way of adding the Author to the content type. Does anyone know how this can be achieved as i think this would solve the problem.
Cheers,
Iain
Isnt it possible to use the View/Edit access settings for the list? You find them under "List settings -> Advanced Settings" or somthing like that.
To bar someone form editing an item he should not, I would not edit the edit form of the item but do this by the item's permissions set. Therefore I would add an event handler to the list which changes the list items permissions after its creation, so that only the creator of the document has the permission to edit it.
Informations about event receivers can be found on Brian Wilson's blog.
I think JMD is right. You can do this without a custom form or any coding. From the list's menu bar select Settings -> List Settings -> Advanced Settings
Once there, you should see an option in Item Level Permissions to restrict edit access to only the item's author.

Resources