Troubleshooting
Problem
This technote details a known defect that causes the error, []com.buildforge.services.common.api.APIException: API: Access denied: 7[], to occur in the Tomcat window when the API user attempts to add himself to a new group.
Symptom
The methods addMemberUser for the AccessGroup object, and addAccessGroup for the User object both fail with an Access Denied message, as note below:
In the command line
BuildForge::Ex::APIException: API: Access denied: 7.
In the Tomcat window
Nov 27, 2007 3:44:30 PM com.buildforge.services.server.api.AuthContext loginLdap
INFO: Authenticated LDAP user: kaduer@us.ibm.com
Nov 27, 2007 3:44:30 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:30 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:31 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:31 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:31 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:31 PM com.buildforge.services.server.util.AccessCache check
INFO: check: MISS
Nov 27, 2007 3:44:31 PM com.buildforge.services.server.api.APIServerConnection process
WARNING: !!!
com.buildforge.services.common.api.APIException: API: Access denied: 7.
at com.buildforge.services.common.api.APIException.needLevel(APIException.java:313)
at com.buildforge.services.server.api.AuthContext.checkLevel(AuthContext.java:314)
at com.buildforge.services.server.api.commands.AccessCommands.addMemberUser(AccessCommands.java:327)
at com.buildforge.services.server.api.commands.AccessCommands.invoke(AccessCommands.java:116)
at com.buildforge.services.server.api.APICommandProcessor.process(APICommandProcessor.java:185)
at com.buildforge.services.server.api.APIServerConnection.handleRequest(APIServerConnection.java:155)
at com.buildforge.services.server.api.APIServerConnection.process(APIServerConnection.java:107)
at com.buildforge.services.server.dispatch.handler.BufferedConnection.run(BufferedConnection.java:175)
at com.buildforge.services.server.dispatch.ThreadPool$WorkerThread.run(ThreadPool.java:333)
The same user can add himself to the new group while logged in through the user interface.
The user is a member already of the System manager and Security groups with the permissions to perform the task of adding users to new groups.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
11 June 2026
UID
swg21289423