(SharePoint) Retrieving User Profile Properties

This isn’t going to tell you or give you code examples. This post is to give you the one piece of information that seems to be lacking in most posts on the subject. The following functions all have this issue. The getMyProperties method and the getPropertiesFor method return a PersonProperties object. The getUserProfilePropertiesFor method and…

0

Exchange Web Service learnings

Just the other day I worked on a requirement to get emails from exchange. This sounds simple right? Back in the day I would use IMAP to do this, but starting in 2016 that is disabled by default, review; https://docs.microsoft.com/en-us/Exchange/plan-and-deploy/deployment-ref/network-ports. Where I work there is a development environment, fun side story is I was told…

0

PowerShell Settings file (import/export)

There are hash tables in PowerShell. The following is a string representation of a hash table, this can be set in a text file to be loaded. @{ Setting1=”test1″ Setting2=”test2″ } When loading the file the following is used: $settings = Get-Content -path “c:\mypath.settings.txt” -Raw | ConvertFrom-Json This will load the object with all the…

0

SQL Dialog Box for PowerShell

I had a need the other day to build a PowerShell script to automate some tasks for installing a solution I built. I’ve always believed that its best to limit how much untested data entry a user has to do. Hence I wanted a dialog box for SQL connections and be able to test the…

0

AuthenticationManager.GetExternalLoginInfoAsync() returns NULL

There is a problem when trying to use “GetExternalLoginInfoAsync()”. This is a problem when using wsFederation so if you setup federation following these instructions. Then when trying the following: [AllowAnonymous] public async Task<ActionResult> ExternalLoginCallback(string returnUrl) { var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync(); } The only way you will get the loginInfo is using the following: var…

0

CRM with CUSTOM STS and ADFS

SO the other day I needed to make the STS (security token service) solution I built work with CRM (customer relations management). CRM is interesting in that unlike SPS (SharePoint) it does not include an STS its self. The current documentation indicates that CRM relies on ADFS to be the IdP (identity provider). There are plenty…

0

PKI Authentication as a Azure Web App

Hi everyone, So recently I had to port a solution for authenticating users which use a PKI token. The solution was onsite and relied heavily on IIS for chain trusts, CRL checks, and more. In Azure when porting the STS (Security Token Service) there are several elements missing. Review: https://azure.microsoft.com/en-us/blog/enabling-client-certificate-authentication-for-an-azure-web-app/ This allows any Azure web app service…

0

Offline NuGet Packages with VS.NET 2017

So, I work with a customer that has thier development network offline of the general internet. One of the development leads built a template for VS.NET (2015) which has all the NuGet packages. Well, I am running VS.NET 2017, yes I like to run the latest and greatest! First off, I created a new solution…

0

DO NOT DELETE “Style Resource Readers” Group

So the other day at my customer, the site collection used for training just stopped working, that’s what is said. What stopped working is creating any sub sites, list, libraries. The error was very vague and unhelpful. The SPS Logs simply showed  IO File not found shortly after trying to activate the “WikipageHomePage” feature. While…

0

SharePoint 2013 Multiple App Domain with Host Named Site Collections Issue

SO, the other day I ran into a problem at a customer: Summary My client has setup an environment where they can only utilize sub domains of their primary domain. For example: command.com Hence different sites would be sub domains such as: release.command.com forward.command.com To save time, maintenance and resources these two web applications are…

0