none
Reading the ProjectTypeLookupTypeInfo fails for "Project Mangaer" Role RRS feed

  • Question

  • Hi,

    In Project Server 2010 PWA, I am using Bulk edit Solution starter. When teh project Manager browse to teh page, nothing is shown up. So I debugged the code, Follwing was the error message.

    <errinfo xmlns="">
    <general>
    <class name="Access Denied.">
    	<error id="20010" name="GeneralSecurityAccessDenied" uid="3b23aed2-b4c0-44bd-8af7-618ff97e6ce4" />
    </class>
    </general>
    </errinfo>

    Here is the code which is throwing teh Soap Exception.

     public static LookupTypeInfo ProjectTypeLookupTypeInfo
            {
                get
                {
                    lock(_syncObj)
                    {
                        if(_projectTypeLookupTypeInfo == null)
                        {
                            try
                            {
                                var projectTypes = new List<LookupTypeItem>();
                                PJContext.Current.PSI.WorkflowWebService.ReadEnterpriseProjectTypeList()
                                    .EnterpriseProjectType.Rows
                                    .Cast<WorkflowDataSet.EnterpriseProjectTypeRow>()
                                    .ToList()
                                    .ForEach(_ => projectTypes.Add(new LookupTypeItem(_.ENTERPRISE_PROJECT_TYPE_UID.ToString(), _.ENTERPRISE_PROJECT_TYPE_NAME)));
                                _projectTypeLookupTypeInfo = new LookupTypeInfo("ProjectTypeLookup", projectTypes);
                            }
                            catch (System.Web.Services.Protocols.SoapException soapex)
                            {
                                PSClientError clienterror = new PSClientError(soapex);
                                
                            }
                            catch (Exception e)
                            {
                               
                            }
                        }
                    }
                    return _projectTypeLookupTypeInfo;
                }
            }

    Exactly we are getting teh exception on the method call to webservice "PJContext.Current.PSI.WorkflowWebService.ReadEnterpriseProjectTypeList()".

    Can anyone tell me which access need to be given to PM, so that he will be able to have access to this method?

    Note:  it works fine when the user is Administrator in PWA.

    Thanks.


    Muniappan

    Wednesday, June 27, 2012 10:20 AM

Answers

  • Hi Muniappan,

    To Read the ReadEnterpriseProjectTypeList from PSI -WorkflowWebService, user will need to have the following permissions:

    Permission                  Description
     
    ManageWorkflow  Allows the user to manage workflows. Global permission.
    ChangeWorkflow   Allows a user to change workflows. Global permission.

    SOunds like your project manager doesn't have above permissions, so getting the GeneralSecurityAccessDenied.
    Please update the permissions & re-test it. For Administrator, It works without any issues since Administrator group has all permissions.

    PS: for the questions related to customization, Please post in customization related forum of Project server:
    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads

    Hoep this helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    • Marked as answer by Muniappan S Wednesday, June 27, 2012 11:51 AM
    Wednesday, June 27, 2012 10:40 AM

All replies

  • Hi Muniappan,

    To Read the ReadEnterpriseProjectTypeList from PSI -WorkflowWebService, user will need to have the following permissions:

    Permission                  Description
     
    ManageWorkflow  Allows the user to manage workflows. Global permission.
    ChangeWorkflow   Allows a user to change workflows. Global permission.

    SOunds like your project manager doesn't have above permissions, so getting the GeneralSecurityAccessDenied.
    Please update the permissions & re-test it. For Administrator, It works without any issues since Administrator group has all permissions.

    PS: for the questions related to customization, Please post in customization related forum of Project server:
    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads

    Hoep this helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    • Marked as answer by Muniappan S Wednesday, June 27, 2012 11:51 AM
    Wednesday, June 27, 2012 10:40 AM
  • Thanks Amit. It worked fine.

    Thanks.


    Muniappan

    Wednesday, June 27, 2012 11:51 AM