Home

custom user action in SharePoint online

%3CLINGO-SUB%20id%3D%22lingo-sub-51638%22%20slang%3D%22en-US%22%3Ecustom%20user%20action%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51638%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%20how%20I%20can%20deploy%20a%20custom%20user%20action%20in%20SharePoint%20online%3F%20The%20custom%20user%20action%20is%20a%20js%20file%20and%20I%20like%20to%20brand%20with%20it%20the%20%E2%80%9Cold%E2%80%9D%20SharePoint%20online%20sites.%3C%2FP%3E%3CP%3ETo%20deloy%20I%20like%20to%20use%20powershell.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20help%20Stefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-51638%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPatterns%20and%20Practices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-51643%22%20slang%3D%22en-US%22%3ERe%3A%20custom%20user%20action%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51643%22%20slang%3D%22en-US%22%3E%3CP%3EPnP%20PowerShell%20contains%20the%20Add-PnPCustomAction%20cmdlet%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_powershell%2Faddpnpcustomaction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_powershell%2Faddpnpcustomaction%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-51640%22%20slang%3D%22en-US%22%3ERe%3A%20custom%20user%20action%20in%20SharePoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51640%22%20slang%3D%22en-US%22%3EI%20have%20a%20non-PnP%20PowerShell%20script%20that%20we%20use%20to%20do%20this%20very%20thing%20(havent%20updated%20to%20use%20PnP).%20I'd%20assume%20it%20is%20easier%20than%20what%20I%20have%2C%20so%20I%20can%20share%20that%20when%20I%20get%20a%20chance%20if%20no%20one%20gives%20you%20the%20probably%20more%20preferred%20PnP%20approach.%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hey, how I can deploy a custom user action in SharePoint online? The custom user action is a js file and I like to brand with it the “old” SharePoint online sites.

To deloy I like to use powershell. 

 

Thanks for help Stefan

2 Replies
I have a non-PnP PowerShell script that we use to do this very thing (havent updated to use PnP). I'd assume it is easier than what I have, so I can share that when I get a chance if no one gives you the probably more preferred PnP approach.

PnP PowerShell contains the Add-PnPCustomAction cmdlet:

https://msdn.microsoft.com/en-us/pnp_powershell/addpnpcustomaction