Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Rights and Roles Service

Rights and Roles

Rights and Roles Service

Rights and Roles

Anchor
getAllRoles
getAllRoles

...

Deck of Cards
idbimGetAllRoles


card
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/roles 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles

Examplehttps://api-stage.bimplus.net/v2/best-company/roles

Optional query parameters

NameTypeDefault valueDescription
rightsbooleantrue

When query parameter "rights=false" is defined, the API call will returns all roles. i.e. not only roles which contains
resources and right definitions.
When query parameter is missing, the API call returns only roles which includes resources and rights definitions.

customroleboolean

When query parameter customrole is defined e.g. "customrole=true", the API call will returns only roles which have value of property "customRole" equal to query parameter.
When query parameter is missing, the API call returns all roles (i.e. their customRole property can be true or false)



Card
labelHTTP Method
 GET


Card
labelDescription

 Get all the available roles. Right now, we support only project based roles and custom roles

labelHTTP Method
 GET
Card
labelDescription

 Get all the available roles. Right now, we support only project based roles and custom roles.

Here is the definition of Bimplus Rights and Roles.


Account OwnerProject AdminProject EditorProject Viewer
Create projectx


Admin projectxx

Delete projectxx

Edit projectxxx
View projectxxxx
Create modelxx

View all modelsxxxx

Model rights and roles are not supported yet, the project rights are used instead - meaning e.g. update model requires ProjectEdit rights


The custom roles contains also definition for which resource and rights are valid.



Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 Ok


Code Block
borderColorRed
langxml
titleJSON
[	{
    		"id": "f11d32e2a298b28d-30b79711-4f814a76-8a749a7d-2165ecc00cf6910cbf144ee5",
    		"name": "Project_EditorAdmin",
		"type":    "Project",
		"rank": 3,
		"customRole": true,
    		"resources": [{
        "resource				"id":"UserRightProject "cc49128e-9416-4bfc-a695-b17365dc7a5e",
        "rights":["ProjectEdit",
          "Model_ViewAll",
          "Model_Create"
        ]
      }
    ]
  },
  {
    "id":"213becc0-ad48-4cd0-aef2-b922b21bbfd7",
    "name":"TestRoleParent",
    "customRole":true,
    "resources":[{
        "resource":"UserRightLayer",
        "rights":["MEPEdit"
        ]
      }
    ],
    "children":[{
        "id":"d1310d52-addf-4264-8623-29730d2cc775",
        "parent":"213becc0-ad48-4cd0-aef2-b922b21bbfd7",
        "name":"Testchild",
        "customRole":true,
        "resources":[{
            "resource":"UserRightGlobalFreeAttributes",
            "rights":["FreeAttributeView",
              "FreeAttributeGroupView",
              "AttributeTemplateView",
              "ProjectAttributeTemplateView"
            ]
          },
          {
            "resource":"UserRightLayer",
            "rights":["MEPEdit"
            ]
          }
        ]
      },
      {
        "id":"118898b6-0b86-4876-bb05-bf5294e392d6",
        "parent":"213becc0-ad48-4cd0-aef2-b922b21bbfd7",
        "name":"TestRole",
        "customRole":true,
        "resources":[{
            "resource":"UserRightGlobalFreeAttributes",
            "rights":["FreeAttributeView",
              "FreeAttributeGroupView",
              "AttributeTemplateView",
              "ProjectAttributeTemplateView"
            ]
          },
          {
            "resource":"UserRightLayer",
            "rights":["MEPEdit"
            ]
          }
        ]
      }
    ]
  }
]

...

				"resource": "Project",
				"rights": [
					"ProjectAdmin"
				],
				"rightsAccess": [{
						"id": "815ce797-da07-4372-8a59-609f7106ab09",
						"name": "Project",
						"access": "Admin"
					}
				]
			}
		]
	}, {
		"id": "a618d075-7e4a-4bde-9d58-d2979696fa96",
		"name": "Project_Viewer",
		"type": "Project",
		"rank": 1,
		"customRole": true,
		"resources": [{
				"id": "cc49128e-9416-4bfc-a695-b17365dc7a5e",
				"resource": "Project",
				"rights": [
					"ProjectView"
				],
				"rightsAccess": [{
						"id": "815ce797-da07-4372-8a59-609f7106ab09",
						"name": "Project",
						"access": "View"
					}
				]
			}
		]
	}
...
]



Anchor
getAllRights
getAllRights

Get all the available rights
Deck of Cards
idbimGetAllRights


Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/rights 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/rights

Examplehttps://api-stage.bimplus.net/v2/best-company/rights

JSON Structure

Name

Mandatory / Optional

Type

Description

id

mandatory

string (guid)

Id of the right resource type

resource

mandatory

string

The name of the right resource type

rights

mandatory

object

Dictionary of the pairs of right id together with its name

access

mandatory

JSON Array

Array of the strings represented access right. Can be combination of predefined rights "View", "Edit", "Admin"


Optional query parameters:
Following query parameters allows reduce set of returned right resource types. By default will be returned all defined right resource types.

Name

Type

Default value

Description

project

boolean

true

When query parameter "project=false" is defined, the API call will returns all right resource types except project right resource type.

global

boolean

true

When query parameter "global=false" is defined, the API call will returns all right resource types except global right resource type.

document

boolean

true

When query parameter "document=false" is defined, the API call will returns all right resource types except document right resource type.

globalfreeattributes

boolean

true

When query parameter "globalfreeattributes=false" is defined, the API call will returns all right resource types except globalfreeattributes right resource type.



Card
labelHTTP Method
 GET


Card
labelDescription

 Get all the available rights returns array of right resource types with defined rights.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 Ok


Code Block
borderColorRed
langxml
titleJSON
[  {
    "id":"173e7a88-16d9-4d88-92bf-270fff458435",
    "resource":"Document",
    "rights":{
      "73ca755b-eb41-4abf-8d72-6360f638a34c":"documentshare",
      "f53dac0d-8ef8-48bd-9fa5-b49831bcf671":"documentdelete",
      "6513c54f-0531-47e2-853d-56a25a226765":"documentdownloaddenied",
      "820eb26b-7469-48bd-b10f-0c69e631c910":"documentviewdenied",
      "d7727bed-38b8-4a77-b61d-397fb01f1ad8":"documentupdate"
    },
    "access":["Edit"
    ]
  },
  {
    "id":"cc49128e-9416-4bfc-a695-b17365dc7a5e",
    "resource":"Project",
    "rights":{
      "815ce797-da07-4372-8a59-609f7106ab09":"project"
    },
    "access":["View",
      "Edit

...

Get all the available rights
Deck of Cards
idbimGetAllRights
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: <team_slug>/rights 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/rights

Examplehttps://api-stage.bimplus.net/v2/best-company/rights

Card
labelHTTP Method
 GET
Card
labelDescription

 Get all the available rights.

Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 Ok
Code Block
borderColorRed
langxml
titleJSON
[{
    "resource":"UserRightModel",
    "rights":["Model_Assign",
      "Model_Admin",
    ]
  "Model_Delete"},
  {
    "Model_Edit",
id":"9dae8bb5-77c1-47a6-a916-d4948583b0b9",
      "Model_View"resource":"Global",
      "Model_Importrights":{
    ]
  }"c64151c5-ecde-4e2c-ba53-d0390f480461":"projectdelete",
  {
    "resource6bbc401b-7cd5-4684-a11d-e2448befb3c1":"UserRightProjectprojectcreate",
      "rights99bad6fc-0539-4848-84af-62b6df31eaa3":["Model_ViewAllallattributes",
      "Model_Create3b3f10c1-93a6-4d15-a727-e38e2fb9b0b2":"alldocuments",
      "Project_Right","cc3416d3-c570-4dc6-aa84-72216d3f58da":"allmodels",
      "9351251b-9631-499e-8e23-68ffe70ef3b7":"allprojects"
    },
  "Project_AllDocuments  "access":["Edit"
    ]
  },
  {
    "resourceid":"UserRightGlobal500766a6-2525-45db-b9cd-b2a3d8092ba9",
    "rightsresource":["AllProjectsGlobalFreeAttributes",
      "AllModelsrights",:{
      "Project_Delete061a3842-9b4d-4d19-8651-2f9373c42842":"freeattribute",
      "Project_Create"63b9bfad-db9f-4bbe-a902-7716c440a200":"attributetemplate",
      "AllDocuments"04f5c272-3dec-4bce-85ae-6abb2e936ef8":"projectattributetemplate",
      "AllAttributes"
2a0e7bed-9fbf-46bc-987a-7a6c5c638f98":"freeattributegroup",
      ]"b886cab2-fcce-4a77-ab2d-09f704e363b7":"teammembership"
    },
  {
    "resourceaccess":"UserRightDocument",
    "rights":["Document_UpdateView",
      "Document_Delete",
      "Document_Share",
      "Document_DownloadDenied",
      "Document_ViewDeniedEdit"
    ]
  },
  {
    "resource":"UserRightGlobalFreeAttributes",
    "rights":["FreeAttributeEdit",
      "FreeAttributeGroupEdit"
]




Anchor
getRoleDetails
getRoleDetails

Get details of the role
Deck of Cards
idbimGetRoleDetails


Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/94a60a79-7c81-454b-8158-ffdb9a2bf4d6


Card
labelHTTP Method
 GET


Card
labelDescription
 Get details of a specified role.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
borderColorRed
langxml
titleJSON
{
  "id" : "94a60a79-7c81-454b-8158-ffdb9a2bf4d6",
  "name":"Test",
  "customRole":true,
  "resources":[{
      "id":"4e587ea1-5098-45cd-9655-15f90c16dc58",
      "resource":"AttributeTemplateEditLayer",
      "ProjectAttributeTemplateEdit","rights":["Room"
      ],
      "rightsAccess":[{
      "FreeAttributeView    "id":"52bbc329-dab3-a81c-b548-09c715786a81",
      "FreeAttributeGroupView",
    "name":"RoomModel",
          "access"AttributeTemplateView:"Edit",
      "ProjectAttributeTemplateView",  }
      ]
    }
  ]
}




Anchor
getAllProjectRolesFromRightsAndRolesTemplate
getAllProjectRolesFromRightsAndRolesTemplate

Get all project's roles assigned by right and roles template
Deck of Cards
idbimGetAllProjectRolesFromRightsAndRolesTemplate


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/roles 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/roles 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/roles

JSON Structure: The structure of object is the same as in get all available roles.
The rightsandrolestemplate query parameter should not be used, due to it is implicitly set to actual project rights and roles template id.


Card
labelHTTP Method
 GET


Card
labelDescription

Each project has by default assigned free attribute "RightsAndRoles template" which defines rights and roles template.

The API call will returns all project's roles assigned by rights and roles template.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
[
    {
  "TeamMembershipEdit",
      "TeamMembershipView",
      "StructuralAction_Editor",
      "StructuralAction_Viewer",
      "Precast_Editor",
      "Precast_Viewer",
      "Bridge_Editor",
      "Bridge_Viewer",
      "DoorWindow_Editor",
      "DoorWindow_Viewer",
      "Holzbauobjekte_Editor",
      "Holzbauobjekte_Viewer",
      "BuildingModel_Editor",
      "BuildingModel_Viewer",
      "Opening_Editor",
      "Opening_Viewerid": "94a60a79-7c81-454b-8158-ffdb9a2bf4d6",
      "Inventary_Editor",
      "Inventary_Viewer",
      "TerrainModel_Editorname": "TEST1",
        "TerrainModel_Viewer"customRole": true,
        "Stahlbauobjekte_Editor",resources": [
      "Stahlbauobjekte_Viewer",
      "MEP_Editor",{
      "MEP_Viewer",
      "CollisionModel_Editor",
      "CollisionModel_Viewer"id": "4e587ea1-5098-45cd-9655-15f90c16dc58",
      "Connection_Editor",
      "Connection_Viewer",
     "resource": "Proxy Model_EditorLayer",
      "Proxy Model_Viewer",
          "Finish_Editor",rights": [
      "Finish_Viewer",
        "DesignModel_Concrete_Construction_Editor",
      "DesignModel_Concrete_Construction_Viewer",
RoomModel"
          "Room_Editor",
      "Room_Viewer"],
      "StructuralAnalysis_Editor",
          "StructuralAnalysis_Viewer",rightsAccess": [
      "RevisionComparison_Editor",
      "RevisionComparison_Viewer"
    ]
  },
  {
    "resource":"UserRightLayer",
    "rights":["StructuralAction_Right",
      "Precast_Right",
      "Bridge_Right",
      "DoorWindow_Right"id": "52bbc329-dab3-a81c-b548-09c715786a81",
          "Holzbauobjekte_Right",
         "BuildingModel_Right",
     "name": "Opening_RightRoomModel",
       "Inventary_Right",
      "TerrainModel_Right",
      "Stahlbauobjekte_Right",
     "access": "MEP_RightEdit",
      "CollisionModel_Right",
       "Connection_Right",
      "Proxy Model_Right", }
      "Finish_Right",
          "DesignModel_Concrete_Construction_Right",]
      "Room_Right",
      "StructuralAnalysis_Right",}
      "RevisionComparison_Right"  ]
    ]},
  }
]

...

Create a new role
Resource: <team_slug>/roles 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles

JSON Structure

JSON Structure of the resource definition object

Deck of Cards
idbimCreateNewRole
Card
defaulttrue
labelURL / Resource / JSON Structure

Name

Mandatory / Optional

Type

Description

id

optional

string (guid)

Id of the role

name

mandatory

string

The name of the role

parent

optional

string (guid)

The Id of the parent role

customRole

mandatory

boolean

When this flag is true the role is custom role otherwise will role is 'built in' role

resources

mandatory

JSON Array

Array of the resource definition objects for which the role is valid

Name

Mandatory / Optional

Type

Description

resource

mandatory

string

Describe kind of right e.g. "UserRightGlobal" or "UserRightLayer"

rights

mandatory

JSON Array

Array of the strings of rights e.g.: "FreeAttributeView", "MEP: 2"

Card
labelHTTP Method
 POST
Card
labelDescription
 Creates a new role with defined properties and resources to be valid for.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
    "parent": "213becc0-ad48-4cd0-aef2-b922b21bbfd7",
    "name": "TestRole",
    "customRole": true,
    "resources": [
        {
  {
        "id": "391fb0fc-43ec-464c-bd18-b5223b32bd14",
        "name": "TEST2",
        "customRole": true,
        "resources": [
            {
                "id": "9dae8bb5-77c1-47a6-a916-d4948583b0b9",
                "resource": "Global",
                "rights": [
                    "AllModels",
                    "ProjectCreate",
                    "AllAttributes"
                ],
                "resourcerightsAccess": "UserRightGlobal",[
            "rights": [
       {
         "FreeAttributeView",
               "id": "FreeAttributeGroupViewcc3416d3-c570-4dc6-aa84-72216d3f58da",
                       "AttributeTemplateView",
 "name": "AllModels",
                        "access": "ProjectAttributeTemplateViewEdit"
            ]
        },
        {
            "resource": "UserRightLayer",{
            "rights": [
                "MEP: 2""id": "6bbc401b-7cd5-4684-a11d-e2448befb3c1",
            ]
        }
    ]
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created
Code Block
borderColorRed
langxml
titleJSON
{
        "idname": "118898b6-0b86-4876-bb05-bf5294e392d6ProjectCreate",
              "parent          "access": "213becc0-ad48-4cd0-aef2-b922b21bbfd7",
Edit"
                   "name": "TestRole" },
    "customRole": true,
       "resources": [
        {
            "resource            "id": "UserRightGlobal99bad6fc-0539-4848-84af-62b6df31eaa3",
            "rights            "name": ["AllAttributes",
                "FreeAttributeView",        "access": "Edit"
                "FreeAttributeGroupView",
    }
            "AttributeTemplateView",
    ]
            "ProjectAttributeTemplateView"
    }
        ]
        },
        {
            "resource": "UserRightLayer",
            "rights": [
                "MEPEdit"
            ]
        }
    ]
}

...

}
...
]



Anchor
assignProjectRole
assignProjectRole

Make a team member part of a project by assigning a role to him
Deck of Cards
idbimassignProjectRole


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

JSON Structure

Name

Mandatory / Optional

Type

Description

member

mandatory

object

The member who will be assigned a role to the project.
The object has a mandatory property name "id" which represents Id of the user, its type is string(guid)

role

mandatory

object

The project role which will be assigned to the team member.
The object has a mandatory property name "id" which represents Id of the role, its type is string(guid)

rolesmandatoryJSON ArrayArray of role objects, each object must have defined role id.
groupoptionalObjectObject which contains pairs of group's id and group's role where the new user belongs.

...

Get details of the role
Deck of Cards
idbimGetRoleDetails
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7



Card
labelHTTP Method
 GET POST


Card
labelDescription
 Get details of a specified role Assign a project role to an existing member of a team. Only the user with "Account Owner" or "Project Owner" role can use this API call.


label
Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
Response


Code Block
borderColorGreenRed
langxml
titleStatusJSON
Status:{
 200 OK
Code Block
borderColorRed
langxml
titleJSON
 "member": {
    "id": "118898b6bf5b2382-0b861d14-4876b8df-bb058454-bf5294e392d6947f83b45c25",
  },
  "parentrole": {
    "id": "213becc0f11d32e2-ad4830b7-4cd04f81-aef28a74-b922b21bbfd72165ecc00cf6",
  }
  "nameroles":[
 "Skuska2child",
   {
 "customRole": true,
    "resourcesid": ["f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
    },
    {
            "resource"id": "UserRightGlobalFreeAttributes"391fb0fc-43ec-464c-bd18-b5223b32bd14",
    },
    {
      "rightsid": ["33078aed-0473-4714-beb9-ab989959afdd",
    }
  ],
          "FreeAttributeView"group": {
  	"id": "9a63fe8e-4b80-4c21-af1b-4344f95df6bc",
  	"role": "da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  }		
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
{
          "FreeAttributeGroupViewmember",
            : {
    "AttributeTemplateViewid",
                "ProjectAttributeTemplateView"
            ]
        },
        {
            "resource": "UserRightLayer: "bf5b2382-1d14-b8df-8454-947f83b45c25",
    "email": "testuser@bimplus.net",
    "firstname" : "Test",
    "lastname" : "rightsUser": [,
    ...
  },
  "role": {
    "id":   "MEPEdit""f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
            ]
        }
    ]
}

...

"name": "Project_Editor"
  }
  "roles":[
    {
      "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
      "name": "Project_Editor"
    },
    {
      "id":"391fb0fc-43ec-464c-bd18-b5223b32bd14",
      "name":"Architekt"
    },
    {
      "id":"33078aed-0473-4714-beb9-ab989959afdd",
      "name":"BuildingEditor"
    }
  ],
  "group": {
  	"id": "9a63fe8e-4b80-4c21-af1b-4344f95df6bc",
  	"role": "da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  }
}



Anchor
getMembersWithRoles
getMembersWithRoles

Get the project members along with their respective roles
Deck of Cards
idbimGetMembersWithRoles


Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members


Card
labelHTTP Method
 GET


Card
labelDescription
 Get the member list of a project along with their respective project roles.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json

...

Update the role

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7

Json structure : See above in Create a new role section.

Deck of Cards
idbimUpdateTheRole
Card
defaulttrue
labelURL / Resource / JSON Structure
Card
labelHTTP Method
 PUT
Card
labelDescription
Update the role.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
    "name": "Skuska2update",
    "customRole": true,

    "resources": 
	[ 
        {
            "resource": "UserRightLayer",
            "rights": 
			[
                 "MEP: 3"
                 
            ]
        }
    ]
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
borderColorRed
langxml
titleJSON
{
	[
  {
    "member": {
      "id": "213becc0bf5b2382-ad481d14-4cd0b8df-aef28454-b922b21bbfd7947f83b45c25",
	"name      "email": "Skuska2updatetestuser@bimplus.net",
	"customRole": true,
	"resources": [
		{
			"resource"      "firstname" : "UserRightLayerTest",
			"rights": [
				"MEPAdmin"
			]
		}
	]
}

...

Delete the role
Deck of Cards
idbimDeleteTheRole
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: <team_slug>/roles/<role_id>

URLhttps://api-stage.bimplus.net/v2/<team_slug>/roles/<role_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/roles/213becc0-ad48-4cd0-aef2-b922b21bbfd7

Card
labelHTTP Method
 DELETE
Card
labelDescription
 Deletes a specified role.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK

...

Make a team member part of a project by assigning a role to him
Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

JSON Structure

Deck of Cards
idbimassignProjectRole
Card
defaulttrue
labelURL / Resource / JSON Structure

Name

Mandatory / Optional

Type

Description

member

mandatory

object

The member who will be assigned a role to the project

id

mandatory

string (guid)

Id of the user

role

mandatory

object

The project role which will be assigned to the team member

id

mandatory

string (guid)

Id of the role

Card
labelHTTP Method
 POST
Card
labelDescription
 Assign a project role to an existing member of a team. Only the user with "Account Owner" or "Project Owner" role can use this API call.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
        "lastname" : "User",
      ...
    },
    "role": {
      "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
      "name": "Project_Editor"
    }
    "roles":[
      {
        "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
        "name": "Project_Editor"
      },
      {
        "id":"391fb0fc-43ec-464c-bd18-b5223b32bd14",
        "name":"Architekt"
      },
      {
        "id":"33078aed-0473-4714-beb9-ab989959afdd",
        "name":"BuildingEditor"
      }
    ],
    "group": {
  	"id": "9a63fe8e-4b80-4c21-af1b-4344f95df6bc",
  	"role": "da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  	}
  },
 {

    "member": {
      "id": "bf5b2382-1d14-b8df-8454-947f83b45c25",
     },  "email": "customer2@bimplus.net"
  role    "firstname" : {
"Some",
      id"lastname" : "f11d32e2-30b7-4f81-8a74-2165ecc00cf6"
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created
Code Block
borderColorRed
langxml
titleJSON
{
  "memberCustomer",
      ...
    },
    "role": {
      "id": "bf5b2382e11d32e2-1d1430b7-b8df4f81-84548a74-947f83b45c252165ecc00cf6",
      "emailname": "testuser@bimplus.net",Project_Viewer"
    "firstname" : "Test",}
    "lastnameroles" : "User",[
    ...
  },{
   "role": {
    "id": "f11d32e2e11d32e2-30b7-4f81-8a74-2165ecc00cf6",
        "name": "Project_EditorViewer"
}

...

      },
    ],
    "group": {
  	"id": "9a63fe8e-4b80-4c21-af1b-4344f95df6bc",
  	"role": "da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  	}
  }
]



Anchor
updateProjectRole
updateProjectRole

Update the project role of a team member
Deck of Cards
idbimUpdateProject


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

JSON Structure

Name

Mandatory / Optional

Type

Description

member

mandatory

object

The member who will be assigned a role to the project.
Object must have set "id" as string(guid) - Id of the user.

role

mandatory

object

The project role which will be assigned to the team member.
Object must have set "id" as string(guid) - Id of the role

rolesmandatoryJSON ArrayArray of role objects, each object must have defined role id.
groupoptionalObjectObject which contains pairs of group's id and group's role where the new user belongs.



Card
labelHTTP Method
 PUT


Card
labelDescription
 Update the project role of a team member. Only the user with "Account Owner" or "Project Owner" role can use this API call.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
  "member":{
    "id":"efeb4da2-1c7c-4aa8-ab13-28638f9669a8"
  },
  "role":{
    "id":"a298b28d-9711-4a76-9a7d-910cbf144ee5"
  },
  "roles":[

...

Get the project members along with their respective roles
Deck of Cards
idbimGetMembersWithRoles
Card
defaulttrue
labelURL / Resource / JSON Structure

Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

Card
labelHTTP Method
 GET
Card
labelDescription
 Get the member list of a project along with their respective project roles.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
borderColorRed
langxml
titleJSON
[
  {
    "member": {
      "id": "bf5b2382-1d14-b8df-8454-947f83b45c25",
      "email": "testuser@bimplus.net",
      "firstname" : "Test",
      "lastname" : "User",
      ...
    },
    "role": {
      "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
      "name": "Project_Editor"
    },
  {
    "member": {
      "id": "bf5b2382-1d14-b8df-8454-947f83b45c25",
      "email": "customer2@bimplus.net"
      "firstname" : "Some",
      "lastname" : "Customer",
      ...
    },
    "role": {
      "id": "e11d32e25d4eaafa-30b7aed0-4f814c53-8a74803d-2165ecc00cf6"2fb7fa6a208b"
    },
    {
  "name": "Project_Viewer"    "id":"72fd3336-7df5-410d-a883-98318e6337b6"
    }
  }
]

...

],
  "group": {
  	"id": "9a63fe8e-4b80-4c21-af1b-4344f95df6bc",
  	"role": "da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  }		
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
titleJSON
{
  "member": {
    "id": "bf5b2382-1d14-b8df-8454-947f83b45c25",
    "email": "testuser@bimplus.net",
    "firstname" : "Test",
    "lastname" : "User",
    ...
  },
  "role": {
    "id": "f11d32e2-30b7-4f81-8a74-2165ecc00cf6",
    "name": "Project_Editor"
  }
  "roles":[
    {
  

...

Update the project role of a team member
Deck of Cards
idbimUpdateProject
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/members 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/members 

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/b8615afc-99cc-4bcd-b0ca-ff0593ce15c6/members

JSON Structure

Name

Mandatory / Optional

Type

Description

member

mandatory

object

The member who will be assigned a role to the project

id

mandatory

string (guid)

Id of the user

role

mandatory

object

The project role which will be assigned to the team member

id

mandatory

string (guid)

Id of the role

Card
labelHTTP Method
 PUT
Card
labelDescription
 Update the project role of a team member. Only the user with "Account Owner" or "Project Owner" role can use this API call.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
  "member": {
    "id": "bf5b2382f11d32e2-30b7-1d144f81-b8df-8454-947f83b45c258a74-2165ecc00cf6",
      "name": "Project_Editor"
    },
  "role":  {
      "id": "f11d32e2391fb0fc-30b743ec-4f81464c-8a74bd18-2165ecc00cf6b5223b32bd14"
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
titleJSON
{
,
      "membername": {"Architekt"
    "id": "bf5b2382-1d14-b8df-8454-947f83b45c25"},
    "email": "customer@bimplus.net",
{
      "firstnameid" : "Some"33078aed-0473-4714-beb9-ab989959afdd",
      "lastnamename" : "CustomerBuildingEditor",
    ...}
  }],
  "rolegroup": {
    	"id": "f11d32e29a63fe8e-30b74b80-4f814c21-8a74af1b-2165ecc00cf64344f95df6bc",
    	"namerole": "Project_Viewer"da3c04d7-b593-4017-b6c3-4c9eed7699bb"
  }		
}



Anchor
deleteProjectRole
deleteProjectRole

...