This topic has not yet been rated - Rate this topic

IAuthorizationService.RegisterObject Method

Registers a securable object in the authorization repository.

Namespace: Microsoft.TeamFoundation.Server
Assembly: Microsoft.TeamFoundation (in microsoft.teamfoundation.dll)

void RegisterObject (
	string objectId,
	string objectClassId,
	string projectUri,
	string parentObjectId
)
void RegisterObject (
	String objectId, 
	String objectClassId, 
	String projectUri, 
	String parentObjectId
)
function RegisterObject (
	objectId : String, 
	objectClassId : String, 
	projectUri : String, 
	parentObjectId : String
)

Parameters

objectId

The unique object identifier supplied by the caller. A URI (for artifacts) or a GUID (for all other objects) is recommended.

objectClassId

The name of one of the registered object classes.

projectUri

The project scope with which the object is associated. If this is null, the object is scoped globally to the server.

parentObjectId

The parent of the object to be registered.

The object is registered with a unique objectId, objectClassId, and a parent team project specified by projectUri. If projectUri is null, the object is scoped globally to the server.

Every securable object in the system must be uniquely identified by an immutable string identifier. This identifier is used in all authorization calls.

Many items on the Team Foundation Server have unique URIs that can be used for the object ID. For other objects, a GUID should be generated and used as the identifier.

Objects can be scoped to the server or to a team project.

If an object is not registered, or if no ACEs have been created for this object, all requested permissions for this object will be denied.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ