Project Server Security Mode / Reading user's group assignments

Copper Contributor

Hi Folks,


I am looking for a way to read the security groups the current user is assigned to in Project Server or Project Online. We want to use security groups to control access to specific functions we implemented in our solution which is mostly VBA-based, so I am restricted to what WinHTTP can do. No fancy CSOM or anything that sort.

To say it simple, each critical function has a corresponding security group, and only users who are members in the security group will have access.


In 2016, Microsoft discontinued the method GetProjectServerSettingsEx method in the Project Professional object model. It will now just raise an automation error. It used to be a simple way to read the Project Server security groups that the active user was assigned to.

But more things have changed since then. As an alternative to the Project Server security model, SharePoint could also be used in its place. Probably that's the reason behind said method no longer working as it would only work with Project Server security, not with SharePoint's.

More and more projects are coming up now where a requirement is that functionality can be restricted to specific users with the help of custom user groups. However, I am completely stuck finding out the data needed.

What we would need is:


  • a way to find out what security model the Project Server in question is running
    I know that there is the PowerShell Get-SPProjectPermissionMode cmdlet but I cannot integrate PowerShell the VBA solution. There is no obvious ODATA / REST method to find out the same
  • once the security model is known (if need be, we can provide it redundantly in our local configuration):
    • for Project Server security model: a REST API that allows to read the group assignments for the active user, or if need be, for all users, being filtered to reveal only the current user's data
    • for SharePoint security model: I found that using the https://<server>/_api/web/CurrentUser?$expand=groups will give me a list of groups, however, they are not related to the ones used in Project Server because the systems I have are all running Project Server security model. So what I'm getting are probably SharePoint groups that I cannot use for my needs. But it would still be nice to know if this URL would be the place to go in the SharePoint security model context

I cannot find any ProjectServer related REST endpoint revealing any user data at all. There are only two I know of, ProjectServer for draft projects and some config data, and ProjectData for published projects and reporting purposes.

Here's what the ProjectServer REST endpoint returns. The URL that produced this result is https://tpgpj2016.dom.local/PWA/_api/ProjectServer

<?xml version="1.0" encoding="utf-8"?>
<entry xml:base="https://tpgpj2016.dom.local/_api/" xmlns="" xmlns:d="" xmlns:m="" xmlns:georss="" xmlns:gml="">
  <category term="PS.ProjectServer" scheme="" />
  <link rel="edit" href="ProjectServer" />
  <link rel="" type="application/atom+xml;type=feed" title="Calendars" href="ProjectServer/Calendars" />
  <link rel="" type="application/atom+xml;type=feed" title="CustomFields" href="ProjectServer/CustomFields" />
  <link rel="" type="application/atom+xml;type=feed" title="EnterpriseProjectTypes" href="ProjectServer/EnterpriseProjectTypes" />
  <link rel="" type="application/atom+xml;type=feed" title="EnterpriseResources" href="ProjectServer/EnterpriseResources" />
  <link rel="" type="application/atom+xml;type=entry" title="EntityTypes" href="ProjectServer/EntityTypes" />
  <link rel="" type="application/atom+xml;type=feed" title="EventHandlers" href="ProjectServer/EventHandlers" />
  <link rel="" type="application/atom+xml;type=feed" title="Events" href="ProjectServer/Events" />
  <link rel="" type="application/atom+xml;type=feed" title="LookupTables" href="ProjectServer/LookupTables" />
  <link rel="" type="application/atom+xml;type=feed" title="Phases" href="ProjectServer/Phases" />
  <link rel="" type="application/atom+xml;type=feed" title="ProjectDetailPages" href="ProjectServer/ProjectDetailPages" />
  <link rel="" type="application/atom+xml;type=feed" title="Projects" href="ProjectServer/Projects" />
  <link rel="" type="application/atom+xml;type=feed" title="Stages" href="ProjectServer/Stages" />
  <link rel="" type="application/atom+xml;type=feed" title="TimeSheetPeriods" href="ProjectServer/TimeSheetPeriods" />
  <link rel="" type="application/atom+xml;type=entry" title="WorkflowActivities" href="ProjectServer/WorkflowActivities" />
  <link rel="" type="application/atom+xml;type=entry" title="WorkflowDesigner" href="ProjectServer/WorkflowDesigner" />
  <title />
    <name />
  <content type="application/xml">
      <d:IsDelegate m:type="Edm.Boolean">false</d:IsDelegate>
      <d:IsReadOnly m:type="Edm.Boolean">false</d:IsReadOnly>


Here is the same for ProjectData in place of ProjectServer (where ProjectData is for reporting purposes and user data would not be expected anyway):

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<service xmlns="" xmlns:atom="" xml:base="https://tpgpj2016.dom.local/_api/ProjectData/">
    <collection href="Projects">
    <collection href="ProjectBaselines">
    <collection href="AssignmentBaselines">
    <collection href="AssignmentBaselineTimephasedDataSet">
    <collection href="AssignmentTimephasedDataSet">
    <collection href="Deliverables">
    <collection href="Issues">
    <collection href="IssueTaskAssociations">
    <collection href="RiskTaskAssociations">
    <collection href="ProjectWorkflowStageDataSet">
    <collection href="ResourceTimephasedDataSet">
    <collection href="Risks">
    <collection href="TaskBaselines">
    <collection href="TaskBaselineTimephasedDataSet">
    <collection href="TaskTimephasedDataSet">
    <collection href="TimeSet">
    <collection href="TimesheetLines">
    <collection href="TimesheetLineActualDataSet">
    <collection href="Assignments">
    <collection href="Resources">
    <collection href="Timesheets">
    <collection href="TimesheetClasses">
    <collection href="TimesheetPeriods">
    <collection href="Tasks">
    <collection href="BusinessDrivers">
    <collection href="BusinessDriverDepartments">
    <collection href="Prioritizations">
    <collection href="PrioritizationDrivers">
    <collection href="PrioritizationDriverRelations">
    <collection href="PortfolioAnalyses">
    <collection href="PortfolioAnalysisProjects">
    <collection href="CostConstraintScenarios">
    <collection href="ResourceConstraintScenarios">
    <collection href="CostScenarioProjects">
    <collection href="ResourceScenarioProjects">
    <collection href="Engagements">
    <collection href="EngagementsTimephasedDataSet">
    <collection href="EngagementsComments">


So it appears that ProjectServer does not have any REST endpoint for administrative data such as users and security groups (?). I don't know if there is another endpoint for admin purposes but if there is, it is well-hidden and not largely documented...


If it's not ProjectServer any longer but SharePoint, I would not expect it to know much about the Project Server security model. That's still part of Project Server in my opinion, or something in between.

This is complicated a good bit more by Project Online. We should be able to offer a way to bind functionality to user groups on that platform, too.


In case the data I need are only accessible via PSI or CSOM, I would have to provide a local ASP.NET web service that is accessible to all users to give them their list of security groups. It will make the system architecture considerably more complex but if that's the way to go, I would consider doing that.


For the moment, I'm pretty lost. Would be very grateful for any advice.

Thanks everyone!




0 Replies