Duarte Nobrega
 

Script to list Users Rights Report - MOSSRightsReport BETA 1

05

Sep

This script generates an html file with all users & groups per web from a SharePoint Portal. This can be useful for an overview of all user rights over the portal and detect users that might have more rights that they should.

The application contains a configuration file, where each role cold have a color assigned, and also configure roles that you wish to ignore for the report.

 

How to configure:

1. Some lower roles like "Limited access" or "Read" can be configured to be ignored in the Report, in the following tag of the "MOSSRightsReport.exe.config" file:

<add key="RolesToIgnore" value="Read,Limited Access"/>

2. To configure a speficic colour for a certain role:

<add key="full control" value="Red"/>

3. To configure a speficic path to place the report:

<add key="ReportPath" value="c:\temp\"/>

 

How to use:

In the command line just execute:

MOSSRightsReport.exe PortalURL

This will generate an HTML file in the same folder with the following naming convention:

Shareportal_Rights_Report_DATE_TIME.html

 

Future improvements:

- Email the report to the users that need this information.

- Please send suggestions!!!

 

Download the executable and/or source:

MOSSRightsReport.exe.zip (4.93 KB)

MOSS_groups_rights.source..zip (20.13 KB)

 

Example of a generated Report:

Shareportal_Rights_Report_20080905_163537.html (96.42 KB)

 

Duarte Nobrega schreef

Comments (0)

Duarte Nobrega

Script to change List items content types

05

Sep

This console script allows you to change the Content Type of several list items. Given the web URL, the list name, the name of the old content type and the GUID (in the format ex: 0x010072EB2151D28F9A448C128D77EB4924D8), you can update all items at once.

Example:

TamTam.SharePoint.ChangeContentTypeScript.exe "http://mossdev" "ListName" "OldContenType" "0x010072EB2151D28F9A448C128D77EB4924D8"       

The script must run in the hosting SharePoint server.

Below are the executable and the source code for this script:

TamTam.SharePoint.ChangeContentTypeScript.exe.zip (3.37 KB)TamTam.SharePoint.ChangeContentTypeScript.source.zip (15.6 KB)
Share:

Duarte Nobrega schreef

Comments (0)

Duarte Nobrega

Moss2007: “_spBodyOnLoadFunctionNames” undefined function

04

Sep

When editing an hyperlink and you get the error “_spBodyOnLoadFunctionNames” undefined function:
 

 

To fix this:

 

1. to the file RteDialog.aspx, located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS

2. Add the following tag before the core.js JavaScript tag:
<script src="/_layouts/<=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/init.js"

temp_src="/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/init.js">

</script>

Duarte Nobrega schreef

Comments (0)

Duarte Nobrega

Zoeken

Categorie

Archief


Sign In