Directory API Developer Guide

Discover APIs available for the Directory module.

Directory Search (Global)

The service retrieves the details of all users who match the given search parameters.

Note: User details are retrieved from the Global Directory.

URL structure
HTTP GET: https://{hostname}/api/directory?queryparams


Parameters

Parameters

Type(maxlength)

Cardinality

Notes

org_name

String(No Limit)

0..1

Implicit wildcard search, both before and after the string
e.g. searching for "min" will find "Ministry" as well as "Admin"

given_name

String(No Limit)

0..1

Implicit wildcard search, after the string
e.g. searching for "mar" will find "Mark" and "Mary", but not "Omar"

job_title

String(No Limit)

0..1

Implicit wildcard search, both before and after the string

division

String(No Limit)

0..1

Implicit wildcard search, both before and after the string

family_name

String(No Limit)

0..1

Implicit wildcard search, after the string

email

String(No Limit)

0..1

Exact String search. It will find users which match the exact email provided.

Interface

Request Fields

Not Applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/directory?org_name=consulting&division=east&jobtitle=admin&given_name=mary&family_name=smith

Response Fields

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

DirectorySearch

Group

1

 

TotalResults

Attribute
Short(Signed 16 bit)

1

The number of results that match the given search parameters

* SearchResults

Group

1

 

** Directory

Group

0..n

 

*** DivisionName

String(100)

0..1

 

*** OrganizationId

String

0..1

 

*** OrganizationName

String(60)

0..1

 

*** TradingName

String(60)

0..1

 

*** JobTitle

String(50)

0..1

 

*** ProjectAddress

String(205)

0..1

 

*** ProjectFax

String(27)

0..1

 

*** ProjectPhone

String(27)

0..1

 

*** Mobile

String(20)

0..1

 

*** SearchResultType

String

1

One of:

  • USER_TYPE
  • GROUP_TYPE
  • GUEST_TYPE
    Note that global search only returns users (USER_TYPE and GUEST_TYPE)

*** UserId

String

0..1

 

*** UserName

String(61)

0..1

First name + " " + Last name

*** Email String 0..1 Visible for users from the same organisation only

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<DirectorySearch TotalResults="12">
    <SearchResults>
        <Directory>
            <DivisionName>Administration</DivisionName>
            <Mobile>0412345678</Mobile>
            <OrganizationId>1879048492</OrganizationId>
            <OrganizationName>Majestic Project &amp; Construction
                Management Limited</OrganizationName>
            <TradingName>Majestic Builders</TradingName>
            <JobTitle>Project Coordinator</JobTitle>
            <ProjectAddress>190-210 High Street Buckhurst Grange
                Clearwater Bay New Devonshire 9000, Australia</ProjectAddress>
            <ProjectFax>61922221111</ProjectFax>
            <ProjectPhone>61933332222</ProjectPhone>
            <SearchResultType>USER_TYPE</SearchResultType>
            <UserId>1879049257</UserId>
            <UserName>Ho Tran</UserName>
            <Email>hotran@majestic.com</Email>
        </Directory>
        <Directory>
            <DivisionName>Administration</DivisionName>
            <Mobile>0412345438</Mobile>
            <OrganizationId>1879048511</OrganizationId>
            <OrganizationName>Rand Resources (Pty) Ltd</OrganizationName>
            <TradingName>Rand Resources</TradingName>
            <JobTitle>Project Administrator</JobTitle>
            <ProjectAddress>1564 Miseshi Rd Parklands Kitwe
                2016, Zambia</ProjectAddress>
            <ProjectFax>2602211167</ProjectFax>
            <ProjectPhone>2602211192</ProjectPhone>
            <SearchResultType>USER_TYPE</SearchResultType>
            <UserId>1879049339</UserId>
            <UserName>Mary Karinkis</UserName>
        </Directory>
    </SearchResults>
</DirectorySearch>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

GLOBAL_DIRECTORY_DISABLED

If the user is requesting information from the global directory but does not have the global directory secured asset

401 Forbidden

Prerequisites

Required Permissions

The authorizing user (specified in the request header) must have the secured asset to access the Global Directory.

Preferences/Module Setup

Not applicable.

Constraints

As with the Aconex GUI, the service returns only the details of users who are visible to the authorizing user. For example, disabled users will not be returned in the response message.

Directory Search (Project)

The service retrieves the details of all groups and users who match the given search parameters.

Note: Group and user details are retrieved from the specified project's directory.

URL structure
HTTP GET: https://{hostname}/api/projects/{projectid}/directory?{parameters}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

org_name

String(No Limit)

0..1

Implicit wildcard search, both before and after the string
e.g. searching for "min" will find "Ministry" as well as "Admin"

given_name

String(No Limit)

0..1

Implicit wildcard search, after the string
e.g. searching for "mar" will find "Mark" and "Mary", but not "Omar".
Use this parameter when searching for groups

job_title

String(No Limit)

0..1

Implicit wildcard search, both before and after the string

division

String(No Limit)

0..1

Implicit wildcard search, both before and after the string

family_name

String(No Limit)

0..1

Implicit wildcard search, after the string

email

String(No Limit)

0..1

Exact String search. It will find users which match the exact email provided.

show_groups

Boolean

0..1

Default value=true. Possible values:true or false. If false, group details are not returned.

Interface

Request Fields

Not Applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/projects/1879048400/directory?org_name=splice&division=aus&jobtitle=manager&given_name=tim&family_name=jones&show_groups=true

Response Fields

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

DirectorySearch

Group

1

 

TotalResults

Attribute
Short(Signed 16 bit)

1

The number of results that match the given search parameters

* SearchResults

Group

1

 

** Directory

Group

0..n

 

*** DivisionName

String(100)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** GroupId

String

0..1

Only applies when SearchResultType=GROUP_TYPE

*** GroupName

String(100)

0..1

Only applies when SearchResultType=GROUP_TYPE

*** OrganizationId

String

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** OrganizationName

String(60)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** TradingName

String(60)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** JobTitle

String(50)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** ProjectAddress

String(205)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** ProjectFax

String(27)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** ProjectPhone

String(27)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** Mobile

String(20)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** SearchResultType

String

1

One of:

  • USER_TYPE
  • GROUP_TYPE
  • GUEST_TYPE
    Note that users (including guests) and groups have different fields, as per the sample response below

*** UserId

String

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE

*** UserName

String(61)

0..1

Only applies when SearchResultType=USER_TYPE and GUEST_TYPE.
First name + " " + Last name

*** Email

String

0..1

Only applies when SearchResultType=USER_TYPE, visible for users from the same organisation only

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<DirectorySearch TotalResults="12">
    <SearchResults>
        <Directory>
            <GroupId>1879048371</GroupId>
            <GroupName>Design Meeting Group</GroupName>
            <SearchResultType>GROUP_TYPE</SearchResultType>
        </Directory>
        <Directory>
            <DivisionName>Structural</DivisionName>
            <Mobile>0412345678</Mobile>
            <OrganizationId>1879048494</OrganizationId>
            <OrganizationName>Enzice Consulting Engineers</OrganizationName>
            <TradingName>Enzice Consulting</TradingName>
            <JobTitle>Senior Project Manager</JobTitle>
            <ProjectAddress>21 Spring Street Winchester New
                Devonshire 652141, Australia</ProjectAddress>
            <ProjectFax>61944443333</ProjectFax>
            <ProjectPhone>61955554444</ProjectPhone>
            <SearchResultType>USER_TYPE</SearchResultType>
            <UserId>1879049138</UserId>
            <UserName>William Chadstone</UserName>
            <Email>willam@enzice.com</Email>
        </Directory>
        <Directory>
            <DivisionName>Mechanical</DivisionName>
            <Mobile>0412345679</Mobile>
            <OrganizationId>1879048494</OrganizationId>
            <OrganizationName>Enzice Consulting Engineers</OrganizationName>
            <TradingName>Enzice Consulting</TradingName>
            <JobTitle>Drafter</JobTitle>
            <ProjectAddress>21 Spring Street Winchester New
                Devonshire 652141, Australia</ProjectAddress>
            <ProjectFax>61944443333</ProjectFax>
            <ProjectPhone>61955554444</ProjectPhone>
            <SearchResultType>USER_TYPE</SearchResultType>
            <UserId>1879049256</UserId>
            <UserName>Ahmed Jaffer</UserName>
        </Directory>
    </SearchResults>
</DirectorySearch>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

GLOBAL_DIRECTORY_DISABLED

The secured asset to search the global directory has not been granted to the requesting user

401 Forbidden

Prerequisites

Required Permissions

There are no required permissions to use this service.

Preferences/Module Setup

Not Applicable.

Constraints

As with the Aconex GUI, the service returns only the details of users who are visible to the authorizing user. For example, disabled users will not be returned in the response message.

View User Information (Global)

The service retrieves the details of a specified user in the global directory.

Notes:

  1. This service differs from the project level user retrieval in that one can request the information of a user that exists within that Aconex instance that the request is being directed to irrespective of the project that the target user is on.
  2. The client making the request must also have the necessary secured asset to access the global directory to be able to perform the request.
URL structure
GET https://{hostname}/api/users/{userid}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

Interface

Request Fields

Not applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/users/1879048221

Response Fields

Element

Type(maxlength)

Cardinality

Notes

User

Group

1

 

* Division

String(100)

1

 

* Fax

String(30)

1

 

* Mobile

String(20)

1

 

* OrganizationId

String

1

 

* OrganizationName

String(60)

1

 

* OrganizationPostalAddressLine

String(150)

1

 

* OrganizationPostalCity

String(40)

1

 

* OrganizationPostalCountry

String(40)

1

 

* OrganizationPostalPostCode

String(10)

1

 

* OrganizationPostalState

String(40)

1

 

* Phone

String(30)

1

 

* JobTitle

String(50)

1

 

* UserPostalAddressLine

String(205)

1

 

* UserPostalCity

String(50)

1

 

* UserPostalCountry

String(50)

1

 

* UserPostalPostCode

String(20)

1

 

* UserPostalState

String(50)

1

 

* UserFirstName

String(30)

1

 

* UserId

String

1

 

* UserLastName

String(30)

1

 

* UserTitle

String(25)

1

 

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<User>
    <Division/>
    <Fax>61396001111</Fax>
    <Mobile/>
    <OrganizationId>1879048570</OrganizationId>
    <OrganizationName>LockedOrg</OrganizationName>
    <OrganizationPostalAddressLine>696 Bourke St</OrganizationPostalAddressLine>
    <OrganizationPostalCity>Melbs</OrganizationPostalCity>
    <OrganizationPostalCountry>Australia</OrganizationPostalCountry>
    <OrganizationPostalPostCode>3000</OrganizationPostalPostCode>
    <OrganizationPostalState>VIC</OrganizationPostalState>
    <Phone>61396001111</Phone>
    <JobTitle/>
    <UserPostalAddressLine>696 Bourke St</PostalAddressLine>
    <UserPostalCity>Melbs</PostalCity>
    <UserPostalCountry>Australia</PostalCountry>
    <UserPostalPostCode>3000</PostalPostCode>
    <UserPostalState>VIC</PostalState>
    <UserFirstName>Locked</UserFirstName>
    <UserId>1879049450</UserId>
    <UserLastName>Organization</UserLastName>
    <UserTitle>Mr</UserTitle>
</User>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

GLOBAL_DIRECTORY_DISABLED

If the user is requesting information from the global directory but does not have the global directory secured asset

401

ENTITY_NOT_FOUND

If the id of the user did not match a user within the Aconex instance

400

ENTITY_NOT_VISIBLE

If the user being requested is not visible to the user making the request.

400

Prerequisites

Required Permissions

The authorizing user (specified in the request header) must have the secured asset to view user details in the global directory.

Preferences/Module Setup

Not applicable.

Constraints

As with the Aconex GUI, the service returns only the details of users who are visible to the authorizing user. For example, details of a disabled user will not be returned in the response message.

View User Information (Project)

The service retrieves the details of a specified user in the project directory.

Note: This request differs from the global level user retrieval in that the project that the user must be specified and the user making the request must have access to the specified project.

URL structure
HTTP GET: https://{hostname}/api/projects/{projectid}/users/{userid}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

Interface

Request Fields

Not Applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/projects/1879048400/users/1879048221

Response Fields

Element

Type(maxlength)

Cardinality

Notes

User

Group

1

 

* Division

String(100)

1

 

* Fax

String(30)

1

 

* Mobile

String(20)

1

 

* OrganizationId

String

1

 

* OrganizationName

String(60)

1

 

* OrganizationPostalAddressLine

String(150)

1

 

* OrganizationPostalCity

String(40)

1

 

* OrganizationPostalCountry

String(40)

1

 

* OrganizationPostalPostCode

String(10)

1

 

* OrganizationPostalState

String(40)

1

 

* Phone

String(30)

1

 

* JobTitle

String(50)

1

 

* UserPostalAddressLine

String(205)

1

 

* UserPostalCity

String(50)

1

 

* UserPostalCountry

String(50)

1

 

* UserPostalPostCode

String(20)

1

 

* UserPostalState

String(50)

1

 

* UserFirstName

String(30)

1

 

* UserId

String

1

 

* UserLastName

String(30)

1

 

* UserTitle

String(25)

1

 

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<User>
    <Division/>
    <Fax>61396001111</Fax>
    <Mobile/>
    <OrganizationId>1879048570</OrganizationId>
    <OrganizationName>LockedOrg</OrganizationName>
    <OrganizationPostalAddressLine>696 Bourke St</OrganizationPostalAddressLine>
    <OrganizationPostalCity>Melbs</OrganizationPostalCity>
    <OrganizationPostalCountry>Australia</OrganizationPostalCountry>
    <OrganizationPostalPostCode>3000</OrganizationPostalPostCode>
    <OrganizationPostalState>VIC</OrganizationPostalState>
    <Phone>61396001111</Phone>
    <JobTitle/>
    <UserPostalAddressLine>696 Bourke St</UserPostalAddressLine>
    <UserPostalCity>Melbs</UserPostalCity>
    <UserPostalCountry>Australia</UserPostalCountry>
    <UserPostalPostCode>3000</UserPostalPostCode>
    <UserPostalState>VIC</UserPostalState>
    <UserFirstName>Locked</UserFirstName>
    <UserId>1879049450</UserId>
    <UserLastName>Organization</UserLastName>
    <UserTitle>Mr</UserTitle>
</User>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

ENTITY_NOT_FOUND_FOR_PROJECT

The user is requesting user information from a specific project but the target user is not on that project

400

ENTITY_NOT_VISIBLE

The target user is not visible to the user making the request

401

Prerequisites

Required Permissions

The user performing the request must have access to the project that the target user is on.

Preferences/Module Setup

Not applicable.

Constraints

As with the Aconex GUI, the service returns only the details of users who are visible to the authorizing user. For example, details of a disabled user will not be returned in the response message.

View Own User Information

The service retrieves the details of the user making a request.

Notes:

  1. By using the username provided in the authentication credentials, the API will retrieve the details of the authenticated user and return them in the format provided by other View User API services (with additional username).
  2. This service may be useful when you have access to only a user's credentials, and require more details to construct API requests, e.g. userId.
  3. Another use case for this call is when you have access token and want to discover corresponding username.
URL structure
HTTP GET: https://{hostname}/api/user

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

Interface

Request Fields

Not Applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/user

Response Fields

Element

Type(maxlength)

Cardinality

Notes

User

Group

1

 

* Division

String(100)

1

 

* Fax

String(30)

1

 

* Mobile

String(20)

1

 

* OrganizationId

String

1

 

* OrganizationName

String(60)

1

 

* OrganizationPostalAddressLine

String(150)

1

 

* OrganizationPostalCity

String(40)

1

 

* OrganizationPostalCountry

String(40)

1

 

* OrganizationPostalPostCode

String(10)

1

 

* OrganizationPostalState

String(40)

1

 

* Phone

String(30)

1

 

* JobTitle

String(50)

1

 

* UserPostalAddressLine

String(205)

1

 

* UserPostalCity

String(50)

1

 

* UserPostalCountry

String(50)

1

 

* UserPostalPostCode

String(20)

1

 

* UserPostalState

String(50)

1

 

* UserFirstName

String(30)

1

 

* UserId

String

1

 

* UserLastName

String(30)

1

 

* UserTitle

String(25)

1

 

* UserName

String(80)

1

 

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<User>
    <Division/>
    <Fax>61396001111</Fax>
    <Mobile/>
    <OrganizationId>1879048570</OrganizationId>
    <OrganizationName>LockedOrg</OrganizationName>
    <OrganizationPostalAddressLine>696 Bourke St</OrganizationPostalAddressLine>
    <OrganizationPostalCity>Melbs</OrganizationPostalCity>
    <OrganizationPostalCountry>Australia</OrganizationPostalCountry>
    <OrganizationPostalPostCode>3000</OrganizationPostalPostCode>
    <OrganizationPostalState>VIC</OrganizationPostalState>
    <Phone>61396001111</Phone>
    <JobTitle/>
    <UserPostalAddressLine>696 Bourke St</UserPostalAddressLine>
    <UserPostalCity>Melbs</UserPostalCity>
    <UserPostalCountry>Australia</UserPostalCountry>
    <UserPostalPostCode>3000</UserPostalPostCode>
    <UserPostalState>VIC</UserPostalState>
    <UserFirstName>Locked</UserFirstName>
    <UserId>1879049450</UserId>
    <UserLastName>Organization</UserLastName>
    <UserTitle>Mr</UserTitle>
    <UserName>poleary</UserName>
</User>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

Prerequisites

Required Permissions

The user performing the request must have access to API web services.

Preferences/Module Setup

Not applicable.

Constraints

Not applicable.

View Organization Information

The service retrieves the details of an organization.

Note: Organization details are retrieved from the Global Directory.

URL structure
HTTP GET: https://{hostname}/api/organizations/{organizationid}

Parameters

None.

Interface

Request Fields

Not Applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/organizations/1879048221

Response Fields

Element

Type(maxlength)

Cardinality

Notes

Organization

Group

1

 

* ABN

String(30)

1

 

* DeliveryAddressLine

String(130)

1

 

* DeliveryCity

String(40)

1

 

* DeliveryCountry

String(40)

1

 

* DeliveryPostcode

Short(10)

1

 

* DeliveryState

String(40)

1

 

* OrganizationDivisions

Group

1

 

** Division

String(100)

0..n

 

* EmailAddress

String(255)

1

 

* Fax

String(30)

1

 

* OrganizationCode

String(8)

1

 

* OrganizationId

String

1

 

* OrganizationName

String(60)

1

 

* Phone

String(30)

1

 

* PostalAddressLine

String(150)

1

 

* PostalCity

String(40)

1

 

* PostalCountry

String(40)

1

 

* PostalPostCode

Short(10)

1

 

* PostalState

String(40)

1

 

* OrganizationRoles

Group

1

 

** Role

String(40)

0..n

 

* TradingName

String(60)

1

 

* WebsiteAddress

String(255)

1

 

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<Organization>
    <ABN>2223334444</ABN>
    <DeliveryAddressLine>27 Short Street</DeliveryAddressLine>
    <DeliveryCity>Spring Hill</DeliveryCity>
    <DeliveryCountry>Australia</DeliveryCountry>
    <DeliveryPostcode>4003</DeliveryPostcode>
    <DeliveryState>Queensland</DeliveryState>
    <OrganizationDivisions/>
    <EmailAddress>info@aconex.com</EmailAddress>
    <Fax>07554555555</Fax>
    <OrganizationCode>Briscon</OrganizationCode>
    <OrganizationId>1879048221</OrganizationId>
    <OrganizationName>Brisbane Concretors PL</OrganizationName>
    <Phone>07554555555</Phone>
    <PostalAddressLine>27 Short Street</PostalAddressLine>
    <PostalCity>Spring Hill</PostalCity>
    <PostalCountry>Australia</PostalCountry>
    <PostalPostCode>4003</PostalPostCode>
    <PostalState>Queensland</PostalState>
    <OrganizationRoles>
        <Role>Consultant</Role>
        <Role>Subcontractor</Role>
    </OrganizationRoles>
    <TradingName>Brisbane Concretors</TradingName>
    <WebsiteAddress/>
</Organization>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

 

 

 

Prerequisites

Required Permissions

The authorizing user (specified in the request header) must have the secured asset to View Organization Details in the Global Directory.

Preferences/Module Setup

Not applicable.

Constraints

As with the Aconex GUI, the service returns only the details of organizations that are visible to the authorizing user. For example, details of a disabled organization will not be returned in the response message.

List Users in Group

The service retrieves the details of users who belong to a project group.

URL structure
HTTP GET: https://{hostname}/api/projects/{projectid}/groups/{groupid}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

Interface

Request Fields

Not applicable. HTTP GET operations have no request body.

Sample request

https://au1.aconex.com/api/organizations/1879048221

Response Fields

Element

Type(maxlength)

Cardinality

Notes

UserResults

Group

1

 

TotalResults

Attribute
Short(Signed 16 bit)

1

The number of results that match the given search parameters

* SearchResults

Group

1

 

** User

Group

0..n

 

*** Division

String(100)

1

 

*** Fax

String(30)

1

 

*** Mobile

String(20)

1

 

*** OrganizationId

String

1

 

*** OrganizationName

String(60)

1

 

*** OrganizationPostalAddressLine

String(150)

1

 

*** OrganizationPostalCity

String(40)

1

 

*** OrganizationPostalCountry

String(40)

1

 

*** OrganizationPostalPostCode

Short(10)

1

 

*** OrganizationPostalState

String(40)

1

 

*** Phone

String(30)

1

 

*** JobTitle

String(50)

1

 

*** UserFirstName

String(30)

1

 

*** UserId

String

1

 

*** UserLastName

String(30)

1

 

*** UserPostalAddressLine

String(205)

1

 

*** UserPostalCity

String(50)

1

 

*** UserPostalCountry

String(50)

1

 

*** UserPostalPostCode

Short(20)

1

 

*** UserPostalState

String(50)

1

 

*** UserTitle

String(25)

1

 

Sample response

<?xml version="1.0" encoding="UTF-8"?>

<UserResults TotalResults="2">
    <SearchResults>
        <User>
            <Division/>
            <Fax>61944443333</Fax>
            <Mobile/>
            <OrganizationId>1879048494</OrganizationId>
            <OrganizationName>Enzice Consulting Engineers</OrganizationName>
            <OrganizationPostalAddressLine>21 Spring Street
            </OrganizationPostalAddressLine>
            <OrganizationPostalCity>Winchester</OrganizationPostalCity>
            <OrganizationPostalCountry>Australia</OrganizationPostalCountry>
            <OrganizationPostalPostCode>9000</OrganizationPostalPostCode>
            <OrganizationPostalState>New Devonshire</OrganizationPostalState>
            <Phone>61955554444</Phone>
            <JobTitle>Lead Engineer</JobTitle>
            <UserFirstName>Alice</UserFirstName>
            <UserId>1879049134</UserId>
            <UserLastName>Templeton</UserLastName>
            <UserPostalAddressLine>21 Spring Street </UserPostalAddressLine>
            <UserPostalCity>Winchester</UserPostalCity>
            <UserPostalCountry>Australia</UserPostalCountry>
            <UserPostalPostCode>652141</UserPostalPostCode>
            <UserPostalState>New Devonshire</UserPostalState>
            <UserTitle>Ms</UserTitle>
        </User>
        <User>
            <Division>Developer</Division>
            <Fax>61922223333</Fax>
            <Mobile/>
            <OrganizationId>1879048491</OrganizationId>
            <OrganizationName>VIP Group</OrganizationName>
            <OrganizationPostalAddressLine>P.O. Box 35</OrganizationPostalAddressLine>
            <OrganizationPostalCity>Clearwater Bay</OrganizationPostalCity>
            <OrganizationPostalCountry>Australia</OrganizationPostalCountry>
            <OrganizationPostalPostCode>658811</OrganizationPostalPostCode>
            <OrganizationPostalState>New Devonshire</OrganizationPostalState>
            <Phone>61911112222</Phone>
            <JobTitle>Associate Director</JobTitle>
            <UserFirstName>Peter</UserFirstName>
            <UserId>1879049119</UserId>
            <UserLastName>Chitwood</UserLastName>
            <UserPostalAddressLine>P.O. Box 35</UserPostalAddressLine>
            <UserPostalCity>Clearwater Bay</UserPostalCity>
            <UserPostalCountry>Australia</UserPostalCountry>
            <UserPostalPostCode>658811</UserPostalPostCode>
            <UserPostalState>New Devonshire</UserPostalState>
            <UserTitle>Mr</UserTitle>
        </User>
    </SearchResults>
</UserResults>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

ENTITY_NOT_FOUND

The requested GROUP entity with id(s) {groupid} was not found

400 Bad Request

Prerequisites

Required Permissions

There are no required permissions to use this service.

Preferences/Module Setup

Not applicable.

Constraints

As with the Aconex GUI, the service returns only the details of users who are visible to the authorizing user. For example, disabled users will not be returned in the response message.

Create New User

The service creates a new user for an organization.

URL structure
HTTP POST: https://{hostname}/api/organizations/{organizationid}/users

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

Interface

HTTP Request Header variables

As the request body has content that is multipart/mixed, a boundary identifier must be specified in the request header (as a key/value pair). This boundary is used to separate data of different types, e.g. text and binary.

Sample Header

Content-Type=multipart/mixed; boundary="myboundary"

Request Fields

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional.

The number of *'s indicate the parent-child depth.

Field name

Type(maxlength)

Cardinality

Notes

FirstName*

String(30)

1

 

MiddleName

String(30)

0..1

 

LastName*

String(30)

1

 

EmailAddress*

String(255)

1

 

UserName*

String(80)

1

 

Division

String

0..1

Division within the organization

ProjectIds

Group

0..1

Project(s) that the user will be invited to

ProjectId Integer(Signed 32 bit) 0..n  

Language

String

0..1

User's default language. One of

  • en_AU
  • en_US
  • es_ES
  • fr_FR
  • ja_JP
  • ko_KR
  • pt_PT
  • pt_BR
  • zh_CN
  • zh_TW *
  • it_IT
  • ar_EG
  • de_DE
  • ru_RU
  • pl_PL
  • tr_TR

* Available depending on the instance configuration

* Denotes a mandatory field

Using part boundaries

Boundaries are marked using

--<boundaryName>

The exception to this is the final boundary in the POST content, which terminates with

--<boundaryName>--

Refer to the sample request(s) below for further detail.

 

Sample request

https://au1.aconex.com/api/organizations/1879048422/users/

[HTTP Header]
Content-Type=multipart/mixed; boundary="myboundary"

[HTTP Post content]
--myboundary


<User>
<FirstName>John</FirstName>
<MiddleName>J</MiddleName>
<LastName>Smith</LastName>
<EmailAddress>john.smith@oracle.com</EmailAddress>
<UserName>johnsmith</UserName>
<Division>Site</Division>
<ProjectIds><ProjectId>12345678</ProjectId></ProjectIds>
<Language>en_US</Language>
</User>

--myboundary--

Response Fields

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

User

Group

1

 

UserId

String

1

The user ID of the new user.

Sample response

<?xml version="1.0" encoding="UTF-8"?> <User> <UserId>1879053577</UserId> </User>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

INVALID_PARAMETER_VALUE The request parameter organization_id contains an incorrect or unknown value 400 Bad Request
ENTITY_NOT_FOUND The requested ORGANIZATION entity with id was not found 400 Bad Request

VALIDATION_FAILED

One or more form fields validation failed due to invalid values

400 Bad Request

Prerequisites

Required Permissions

The authorizing user (specified in the request header) must have been granted the secured asset to create user.

Preferences/Module Setup

N/A

Constraints

The request will fail if the specified project is not activated.

The request will fail if the authorizing user does not have access to the specified project.

The request will fail if the division is not owned by the organization.

List Organisation Users

The service provides a list of the users within an organisation.

URL structure
HTTP GET: https://{hostname}/api/organizations/{organizationId}/users[?page_size={pageSizeValue}&page_number={pageNumberValue}]

Query Parameters

Parameters

Type(maxlength)

Cardinality

Notes

page_size

String 1 Optional. Number of users per page to report. Min: 1, Max: 1000, Default: 1000

page_number

String 1 Optional. (Pagination related.) Page to extract. Min: 1, Default: 1
Interface

HTTP Request Header variables

Header Value   Notes
Accept */*  

Default response when value is */* : xml

Also Valid:

  • application/xml
  • application/json
Authorization     Type Basic or Bearer (OAuth). Refer Security Documentation
x-api-key     Refer to Security Documentation

Sample Request

 

https://au1.aconex.com/api/organizations/123456789/users

 

https://au1.aconex.com/api/organizations/123456789/users?page_size=30&page_number=2

 

 

Response Fields

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

OrganizationUsers Group 1  
TotalResultsOnPage Atttribute; Numeric in String 1 Number of "User" Groups in the "SearchResults"
TotalResults Atttribute; Numeric in String 1 Total number of Users for this organisation.
TotalPages Atttribute; Numeric in String 1 Total Number of Pages that will contain User data
PageSize Atttribute; Numeric in String 1 Max number of "User" Groups that could be in the "SearchResults"
CurrentPage Atttribute; Numeric in String 1 Page Number
* SearchResults Group 1  
** User Group 0..n  
*** AccessEnabled String 1

Flag indicating Full User Login Enabled State.

Values: {DISABLE. ENABLED}

*** GuestUser String 1

Flag indicating whether is a Guest User or not.

Values {Y, N}

Note: When a Guest User is returned with Y, the Access Enabled and Locked fields are not relevant. 

*** LastLogon String 1

ISO format Date Time of last Login with Timezone of "Instance"

"N/A" when user has not logged in.

Format: yyyy-mm-ddTHH:MM:ss.SSS[Z|+HH:MM]

*** Locked String 1

Flag indicating whether Login is Locked.

Values: {UNLOCKED LOCKED}

*** OrganizationAdminRole String 1

Flag indicating whether User is allocated into a role that is denoted as Admin.

Values {Y, N}

*** OrganizationId String 1 Identifier of the Organisation. Will align to Request
*** Email String 1  
*** UserFirstName String 1  
*** UserId String 1 Identifier of the User.
*** UserLastName String 1  

Sample response

<OrganizationUsers TotalResultsOnPage="7" TotalResults="33" TotalPages="5" PageSize="7" CurrentPage="1">

    <SearchResults>
        <User>
            <AccessEnabled>ENABLED</AccessEnabled>
            <GuestUser>N</GuestUser>
            <LastLogon>2022-02-02T11:52:38.593+11:00</LastLogon>
            <Locked>LOCKED</Locked>
            <OrganizationAdminRole>Y</OrganizationAdminRole>
            <OrganizationId>1879048492</OrganizationId>
            <OrganizationName>Majestic Project &amp; Construction Management Limited</OrganizationName>
            <Email>Patrick@Majestic.com</Email>
<UserFirstName>Patrick</UserFirstName>             <UserId>1879049107</UserId> <UserLastName>O'Leary</UserLastName> </User>
        <User>

            <AccessEnabled>ENABLED</AccessEnabled>
            <GuestUser>N</GuestUser>
            <LastLogon>N/A</LastLogon>
            <Locked>UNLOCKED</Locked>
            <OrganizationAdminRole>N</OrganizationAdminRole>
            <OrganizationId>1879048492</OrganizationId>
            <OrganizationName>Majestic Project &amp; Construction Management Limited</OrganizationName>
            <Email>document@MajesticController.com</Email>
<UserFirstName>Document</UserFirstName>             <UserId>1879049121</UserId> <UserLastName>Controller</UserLastName> </User>
</SearchResults>
</OrganizationUsers>
Error Codes Specific to the Service

Status Code

Description

HTTP Status Code

INVALID_PARAMETER_VALUE The request parameter organization_id contains an incorrect or unknown value 400 Bad Request
ENTITY_NOT_FOUND The requested ORGANIZATION entity with id was not found 400 Bad Request

ACCESS_FAILED_FOR_ORG

Organization not permitted to use API

401 Unauthorized

Prerequisites

Required Permissions

The authorizing user (specified in the Authorization header) must have been granted Organisation Administrator role for the Organisation.

Preferences/Module Setup

N/A

Constraints

The request will fail if the authorizing user is not a member of the organisation.

The request will fail if the authorizing user is not an Administrator of the organisation.

Enable/Disable Users

Ability to disable/enable (an) existing active user(s) via external API without the need to login to Aconex

URL structure
HTTP POST: https://{hostname}/api/userstatus
Field parameters

Field name

Type(maxlength)

Cadinality

Constraint

Notes

Users

Attribute

1

 

List of Users

User

Attribute

1..n

 

An instance of Users

id

Long

1

One of id/loginName can be null

Id of the an User

loginName

String

1

One of id/loginName can be null

LoginName of an Users

enabled

boolean

1

Cannot be null

'false' will be disable the User in the scope

Sample request

curl --location --request POST 'https://localhost:8443/api/userstatus' \

--header 'Authorization: Basic YWNueEFkbWluOmFjMG4zeDcy' \
--header 'Content-Type: application/xml' \
--header 'Cookie: com.aconex.locale=en_AU' \
--data-raw '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Users>
<User>
    <id>1879049121</id>
    <loginName>jdoe</loginName>
    <enabled>true</enabled>
</User>
<User>
    <id>1879049135</id>
    <loginName>katey</loginName>
    <enabled>true</enabled>
</User>
</Users>'        

Sample response

HTTP 200 OK

 

Error Codes specific to the service

StatusCode

Description

Http Status Code

Success

Successfully enabled/disabled the user

200

ACCESS_FAILED_FOR_ORG

Authorized Org Admin user must belong to the same org.

401

ACCESS_FAILED_FOR_ORG

Authenticated user should have permission to enable/disable an User in his Org

401

INPUT_CONSTRAINT_VIOLATION

Input bean has constraint violations - UserStatus[0] LoginName is blank

400

INPUT_CONSTRAINT_VIOLATION

Input bean has constraint violations - UserStatus[0] either Id/LoginName is null

400

Prerequisites

Required Permissions

  • The authorising user must be an Org Admin and should belong to the same Organization of the Users.
  • A user cannot enable/disable oneself.

 

Create Mailing Groups in Project

This API is available from the February 2024 release. See release notes.

This service creates mailing Groups in Project using provided project ID

 

URL structure

HTTP POST - Create Mailing Groups in Project 

HTTP POST: https://{hostname}/api/mailinggroups/{ProjectID}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Input Payload Template

Input Payload template to Update user role name and properties

Single Group creation {
"groups": [
{
"groupName":,
"isLocked":
}
]
}

or 

Multiple group Creation

{
"groups": [
{
"groupName": ,
"isLocked": ""
},
{
"groupName": ,
"isLocked":
},
{
"groupName": ,
"isLocked":
},
{
"groupName": ,
"isLocked":
}
]
}

 

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

 

Element

Type(maxlength)

Cardinality

 

Notes

groupName Attribute
String
1
  • Should not be null
  • Max length 50
groupName should be null
isLocked Attribute
boolean
0..1
  • It is Optional
  •  false  by Default
Value can be True/False

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as empty body

 with HTTP status code 201 Created

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459


Request Body -Json

{
"groups": [
{
"groupName": "TeamMarvel1",
"isLocked": "false"
}
]
}

or

{
"groups": [
{
"groupName": "TeamMarvel",
"isLocked": "false"
},
{
"groupName": "Team DC",
"isLocked": "false"
},
{
"groupName": "QA regression",
"isLocked": "true"
},
{
"groupName": "BedRocks",
"isLocked": "true"
}
]
}

Sample Response with HTTP status code 201 Created

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

BAD REQUEST

groupName is null/empty

groupName exceeds max length -50 characters

400 Bad Request

 

Delete Mailing Group in Project

This API is available from the February 2024 release. See release notes.

This service deletes  mailing Groups in Project using provided project ID

 

URL structure

HTTP DELETE - Delete Mailing Groups in Project 

HTTP DELETE: https://{hostname}/api/mailinggroups/{ProjectID}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Input Payload Template

Input Payload template to Update user role name and properties

   {

  "groupName": "",
  "groupId": ""
}

 

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

 

Element

Type(maxlength)

Cardinality

Notes

groupID
Attribute
Int
1
  • Cannot be blank
  • Provide groupID 
 
groupName Attribute
String
1
  • It is Optional
 

 

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as 

{
"message": "Group Deleted Successfully",
"status": "OK"
}

 with HTTP status code 200 OK

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459


Request Body -Json

{
"groupName": "Architetural Group"     "groupId": 1879048366,   }

Sample Response 

{
"message": "Group Deleted Successfully",
"status": "OK"
}

with HTTP status code 200 OK

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

BAD REQUEST

groupID is null/empty

newgroupName exceeds max length -50 characters

400 Bad Request

 

FORBIDDEN

Group is Locked 

Group used in workflow templates

403 Forbidden

 

Read Mailing Groups in Project

This API is available from the February 2024 release. See release notes.

This service fetches Mailing Groups in Project using provided project ID

URL structure

HTTP GET -Fetch Mailing Groups in Project 

HTTP GET: https://{hostname}/api/mailinggroups/{ProjectID}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as 

 

 with HTTP status code 200 Ok

 

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459

Sample Response below :

{
"mailingGroups": [
{
"groupId": 1879053401,
"groupName": "Copy Mailing Group (TEST_1+2-9$) CHECK SPACE CONST",
"groupOwnerUserId": 1879053360,
"users": [
{
"userId": 1879053360,
"userName": "ashsree"
},
{
"userId": 1879054464,
"userName": "2312.mssql"
},
{
"userId": 1879053398,
"userName": "marvel.crash"
},
{
"userId": 1879053399,
"userName": "signage.crash"
}
],
"locked": false
},
{
"groupId": 1879053404,
"groupName": "FINAL ADDITION OF MAILING GROUPS IS IT OK INCLUDED",
"groupOwnerUserId": 1879053360,
"users": [
{
"userId": 1879053391,
"userName": "sandra.pearl"
},
{
"userId": 1879053379,
"userName": "windsor.manor"
},
{
"userId": 1879053398,
"userName": "marvel.crash"
}
],
"locked": true
},
{
"groupId": 1879053439,
"groupName": "TEST2",
"groupOwnerUserId": 1879053360,
"users": null,
"locked": true
}
]
}

 with HTTP status code 200 Ok

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

Update Mailing Group in Project

This API is available from the February 2024 release. See release notes.

This service updates  mailing Groups in Project using provided project ID

 

URL structure

HTTP PUT - Update Mailing Groups in Project 

HTTP PUT: https://{hostname}/api/mailinggroups/{ProjectID}

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Input Payload Template

Input Payload template to Update user role name and properties

{

    "groupId": ,
    "groupName": "",
    "newGroupName": "",
    "locked":
}

 

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

 

Element

Type(maxlength)

Cardinality

Notes

groupID
Attribute
Int
1
  • Cannot be blank
  • Provide groupID 
 
groupName Attribute
String
1
  • It is Optional
 
newGroupName Attribute
String
1
  • Should not be null
  • Max length 50
newGroupName should be null
isLocked Attribute
boolean
0..1
  • It is Optional
  •  false  by Default
Value can be True/False

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as

{
"message": "Group details updated successfully",
"status": "OK"
}

 with HTTP status code 200 OK

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459


Request Body -Json

{

    "groupId": 1879048366,
    "groupName": "Architetural Group",
    "newGroupName": "Architetural Group123",
    "locked": false
}

Sample Response

{
"message": "Group details updated successfully",
"status": "OK"
}

 with HTTP status code 20O OK

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

BAD REQUEST

groupID is null/empty

newgroupName exceeds max length -50 characters

400 Bad Request

Add users to the Mailing Groups in Project

This API is available from the February 2024 release. See release notes.

This service add users in the mailing Groups in Project using provided project ID

 

URL structure

HTTP PUT -Update-adding users in  Mailing Groups in Project 

HTTP PUT: https://{hostname}/api/mailinggroups/{ProjectID}/addUsers

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Input Payload Template

Input Payload template to Update user role name and properties

{

   {
    "addOrRemoveUsersGroupRequest": [
        {
            "groupId":,
            "userId":[]
        },
        {
            "groupName": "",
            "userId":[]
        }
    ]
}
}

or 

 

{

   {
    "addOrRemoveUsersGroupRequest": [
        {
            "groupId":,
            "userId":[]
        }
    ]
}
}

or
{    { "addOrRemoveUsersGroupRequest": [ { "groupName": "", "userId":[] } ] } }

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

Element

Type(maxlength)

Cardinality

Notes

groupID
Attribute
Int
1
  • Cannot be blank
  • Provide groupID 
can provide either groupName or 
groupID 
mandatory
groupName Attribute
String
1
  • Cannot be blank
  • Provide groupID
can provide either groupName or 
groupID
mandatory
userId Attribute
int
1
  • Cannot be blank
  • Provide userId(s)
can provide one or multiple user ids

 

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as

{
"message": "All Users added successfully",
"status": "OK"
}

 

or 

 

{

"message":"The given User ID(s) - [] added successfully. The given User ID(s) - [] is either invalid or not part of the project. Please check and update the request",

"status":"OK"

}

 with HTTP status code 200 OK 

 

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459/addUsers


Request Body -Json

{

    "addOrRemoveUsersGroupRequest": [
        {
            "groupId": 1879048366,
            "userId":[1879049272, 1879049129, 123]
        },
        {
            "groupName": "Design Meeting Group",
            "userId":[1879049119, 1879049120]
        }
    ]
}

Sample Response 

An  response body as

{
"message": "Users added successfully",
"status": "OK"
}

or 

{

"message":"The given User ID(s) - [18790533272] added successfully. The given User ID(s) - [1879053360, 1879053391] is either invalid or not part of the project. Please check and update the request",

"status":"OK"

}

with HTTP status code 20O OK

 

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

BAD REQUEST

groupID is null/empty

groupName is null/empty /group exists with same name

400 Bad Request

Remove users from the Mailing Groups in Project

This API is available from the February 2024 release. See release notes.

This service remove users in the mailing Groups in Project using provided project ID

URL structure

HTTP PUT - Update - Removing users Mailing Groups in Project 

HTTP PUT: https://{hostname}/api/mailinggroups/{ProjectID}/removeUsers

Parameters

Parameters

Type(maxlength)

Cardinality

Notes

ProjectID

string

1

Project id of the project directory 

Input Payload Template

Input Payload template to Update user role name and properties

{

   {
    "addOrRemoveUsersGroupRequest": [
        {
            "groupId":,
            "userId":[]
        },
        {
            "groupName": "",
            "userId":[]
        }
    ]
}
}

or 

 

{

   {
    "addOrRemoveUsersGroupRequest": [
        {
            "groupId":,
            "userId":[]
        }
    ]
}
}

or
{    { "addOrRemoveUsersGroupRequest": [ { "groupName": "", "userId":[] } ] } }

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

 

Element

Type(maxlength)

Cardinality

 

Notes

groupID
Attribute
Int
1
  • Cannot be blank
  • Provide groupID 

can provide either groupName or groupID Mandatory

groupName Attribute
String
1
  • Cannot be blank
  • Provide groupID
can provide either groupName or 
groupID Mandatory
userId Attribute
int
1
  • Cannot be blank
  • Provide userId(s)
can provide  one or multiple user ids

 

 

Expected Response

Cardinality refers to the number of repetitions a field can have. A cardinality that allows zero (0) means the field is optional, and may not appear in the response.

The number of *'s indicate the parent-child depth.

Element

Type(maxlength)

Cardinality

Notes

 

An  response body as

{
"message": "All Users removed successfully",
"status": "OK"
}

 

or 

{

"message":"The given User ID(s) - [] removed successfully. The given User ID(s) - [] is either invalid or not part of the project. Please check and update the request",

"status":"OK"

}

 with HTTP status code 200 OK 

 

Examples/Samples

Sample Request

  • Create a user role in a project
    Sample request for creating a user role in project

    https://au1.aconex.com/api/mailinggroups/1879053459/removeUsers


Request Body -Json

{

    "addOrRemoveUsersGroupRequest": [
        {
            "groupId": 1879048366,
            "userId":[1879049272, 1879049129, 123]
        },
        {
            "groupName": "Design Meeting Group",
            "userId":[1879049119, 1879049120]
        }
    ]
}

Sample Response 

An  response body as

{
"message": "Users removed successfully",
"status": "OK"
}

 

or 

 

{

"message":"The given User ID(s) - [18790533272] removed successfully. The given User ID(s) - [1879053360, 1879053391] is either invalid or not part of the project. Please check and update the request",

"status":"OK"

}

with HTTP status code 20O OK

 

Error Codes Specific to the Service

 

Status Code

Description

HTTP Status Code

LOGIN_FAILED Login failed - username or password incorrect 401 Unauthorized
UNAUTHORIZED USER not permitted to use API 401 Unauthorized

USER_NOT_ON_PROJECT

User is not on requested project

401 Unauthorized

PROJECT_NOT_FOUND

 

The project specified in the path of the request was not found

 

400 Bad Request

BAD REQUEST

groupID is null/empty

groupName is null/empty /group exists with same name

400 Bad Request