Put restrictions on MySites

SP2013

Hello everyone,

Today I’ll talk about a request for MySites on SharePoint 2013.

The request is that the MySite needs to be used only by a limited number of users.

So how to configure it.

Everything happens at the service “User Profile“.

To access it, go to the central administration, in the “Application Management” section, click on “Manage Service Applications“.

1

Click on « User Profile Service Application ».

2

In the « People » section, click on « Manage User Permissions ».

3

By default, you can see that all users have full rights.

4

Change this by unchecking the rights to « All Authenticated Users ».

5

And add users / AD group that you want to give the right to use mysites and check the permissions.

6

For my “Christopher Clement” account, we can see that the MySite is active.

7

While for another account, this is not the case!

8

For more information on MySites, I invite you to read this msdn topic

Hope this helps!

Christopher.

Advertisements

SharePoint DateTime incorrect hour?

SP2013

Hello everyone,

Today I’ll talk about a problem that I had when I wanted to compare dates.

The problem I had was that the time displayed was different from the time that I was recovering through my code! 2h difference to be exact.

After searching for a long time, it turns out that the “problem” was how SharePoint stores dates. Indeed SharePoint converts dates to UTC … that’s why my comparison was not good!

So when you want to work in code behind with dates, do not forget to convert to UTC!

For this, two methods:

SPTimeZone.UTCToLocalTime et SPTimeZone.LocalTimeToUTC

I met the problem on a 2010 environment but in my opinion it should be the same in 2007 and 2013.

Hope this helps!

Christopher.

Login as another user

Hello everyone,

For developers, it is often useful to change the user account (for testing rights or other). However the option to log in as another user was removed from the interface of SharePoint 2013.

The reason being (for what I have read on the net) it does not work 100% (login used in office documents for example …)

But this is not the reason for this article, this article is just to show to developers how to easily switch users.

To do this, simply go to the application page “CloseConnection.aspx” and pass the parameter “loginasanotheruser” to true.

In summary, you must go to the url

http://serverurl/_layouts/closeConnection.aspx?loginasanotheruser=true

And here is the connection pop-up .

Hope this helps!

Christopher.

SharePoint 2013 Certifications Part 2


Hello everyone,

I came across a site talking about certifications 2013, is not official but it seems very likely.

http://www.absolute-sharepoint.com/2013/02/three-new-facts-on-sharepoint-2013-mcsd.html

To remember:

As expected, 4 certifications are planned for development SharePoint 2013.

2  web oriented and 2 SharePoint oriented.

Web Focused

Exam 70-480– Programming in HTML5 with JavaScript and CSS3

Exam 70-486– Developing ASP.NET MVC 4 Web Applications

SharePoint Focused

Exam 70-488– SharePoint Rest ( Exam Number Confirmed, Name not confirmed)

Exam 70-489– SharePoint Collaboration  ( Exam Number Confirmed, Name not confirmed)

SharePoint Beta should be available in April (alpha release in July).

Christopher.