search cancel

Error: User does not have the permissions to create a resource of the given type. Type=

book

Article ID: 161611

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

 

When attempting to create a new resource the attempt fails with a generic error similar to the following. The error references the resource type who’s creation is being attempted, but the error may be thrown when attempting the creation of many different types.

Another symptom of the problem is that the “Edit” option is not displayed when you right-click on an existing resource.

 

 

An error occurred saving changes.  User does not have the permissions to create a resource of the given type. Type= Company

User does not have the permissions to create a resource of the given type. Type= Company

   [Altiris.AssetContractCommon.Controls.ResourceDetailsEditCtrl+RDEditCtrlSaveException @ Altiris.AssetContractCommon]

   at Altiris.AssetContractCommon.Controls.ResourceDetailsEditCtrl.SaveChanges(String newName)

   at Altiris.AssetContractCommon.Web.Manager.EditCreateResource.SaveChanges()

 

User does not have the permissions to create a resource of the given type. Type= Company

   [System.ApplicationException @ Altiris.AssetContractCommon]

   at Altiris.AssetContractCommon.Controls.ResourceDetailsEditCtrl.ValidateResourceTypeSecurity(ResourceTypeItem resourceTypeItem)

   at Altiris.AssetContractCommon.Controls.ResourceDetailsEditCtrl.SaveChanges(String newName)

Cause

There is a missing Item Reference that ties the resource type to the action item “Edit” (Altiris.AssetContractCommon.ItemActions.ResourceItemActionSummaryExtend)

 Without this reference the actions of creating and editing resources of the specified type cannot be performed.

 This condition is usually caused by a failure during an upgrade.

The following query, when run against the database, will show which resource types have the Item Reference required.

 

select i2.name
from itemreference ir
join vitem i1 on i1.guid = ir.parentitemguid
join vitem i2 on i2.guid = ir.childitemguid
where ir.ParentItemGuid = '5AB243EE-443C-4034-A3E8-1D6F0C46EE2A'
 and ir.Hint = 'targetresourcetype'
order by i2.Name

Resolution

Run the SQL contained in the attached file "Fix Item References for Resource Types.sql" which will insert, if missing, the item references for 24 different resource types.

 

Applies To

SMP 7.5 SP1 HF4

Attachments

Fix Item References for Resource Types.sql get_app