0

I've never built a sharepoint customization...ever. But I'm quite handy with c# and I need some kind of pointer on where to start.

I want to create a custom list column which will be

  1. encrypted
  2. password protected
  3. make it possible to decide which roles should have access to it:

    • Everyone
    • Users member of a certain role
    • Creator of list row

The column should be visible for everyone but the content needs to be masked if the logged in user does not fulfill the criterias above.

Now I don't need you guys to solve the issues above but only point me to where I can begin experimenting with creating a custom list column.

  • Don't want to be sarcastic, but good luck with creating something that "complex" in SharePoint Online. Development with SPO is very limited compared to what we could do with SharePoint on-prem (where server-side C# code is allowed... while in SPO you only have access to remote API!). – Evariste Jan 25 '17 at 16:22
  • Really? I thought you had server side c# code in SP online as well...? – dadde Jan 25 '17 at 16:24
  • ya, not going to be possible, anything you can do is just obscuring the underlying data they would have access to. The only way this is workable is if it is a provider hosted app and SharePoint Online just reads the data. – Eric Alexander Jan 25 '17 at 16:24
  • Alright, so lets say I do it with client-side scripting would that be possible? – dadde Jan 25 '17 at 16:26
  • No, because it would only obscure what they already have access to, they could get to the data if they tried. There is no elevation of privileges on the client side either. – Eric Alexander Jan 25 '17 at 16:35
1

Hi everybody and thank you for your contribution.

I've found a solution for this using client-side scripting to encrypt the column value before save, thus the information is encrypted in the database and you'll need a password together with a encryption key to decrypt the column value and show it in a readable format.

To achieve this I've looked at this project and adjusted a lot of the code. https://spcrypto.codeplex.com/

It works satisfactory for my needs in SharePoint online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.