@@ -433,6 +433,8 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
433433 // Space Operations
434434 { label : 'Get Space' , id : 'get_space' } ,
435435 { label : 'List Spaces' , id : 'list_spaces' } ,
436+ // User Operations
437+ { label : 'Get User' , id : 'get_user' } ,
436438 ] ,
437439 value : ( ) => 'read' ,
438440 } ,
@@ -514,6 +516,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
514516 'list_spaces' ,
515517 'get_pages_by_label' ,
516518 'list_space_labels' ,
519+ 'get_user' ,
517520 ] ,
518521 not : true ,
519522 } ,
@@ -560,6 +563,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
560563 'list_spaces' ,
561564 'get_pages_by_label' ,
562565 'list_space_labels' ,
566+ 'get_user' ,
563567 ] ,
564568 not : true ,
565569 } ,
@@ -621,6 +625,14 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
621625 required : true ,
622626 condition : { field : 'operation' , value : 'get_page_version' } ,
623627 } ,
628+ {
629+ id : 'accountId' ,
630+ title : 'Account ID' ,
631+ type : 'short-input' ,
632+ placeholder : 'Enter Atlassian account ID' ,
633+ required : true ,
634+ condition : { field : 'operation' , value : 'get_user' } ,
635+ } ,
624636 {
625637 id : 'propertyKey' ,
626638 title : 'Property Key' ,
@@ -922,6 +934,8 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
922934 // Space Tools
923935 'confluence_get_space' ,
924936 'confluence_list_spaces' ,
937+ // User Tools
938+ 'confluence_get_user' ,
925939 ] ,
926940 config : {
927941 tool : ( params ) => {
@@ -999,6 +1013,9 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
9991013 return 'confluence_get_space'
10001014 case 'list_spaces' :
10011015 return 'confluence_list_spaces'
1016+ // User Operations
1017+ case 'get_user' :
1018+ return 'confluence_get_user'
10021019 default :
10031020 return 'confluence_retrieve'
10041021 }
@@ -1013,6 +1030,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
10131030 attachmentComment,
10141031 blogPostId,
10151032 versionNumber,
1033+ accountId,
10161034 propertyKey,
10171035 propertyValue,
10181036 propertyId,
@@ -1152,6 +1170,15 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
11521170 }
11531171 }
11541172
1173+ if ( operation === 'get_user' ) {
1174+ return {
1175+ credential : oauthCredential ,
1176+ operation,
1177+ accountId : accountId ? String ( accountId ) . trim ( ) : undefined ,
1178+ ...rest ,
1179+ }
1180+ }
1181+
11551182 return {
11561183 credential : oauthCredential ,
11571184 pageId : effectivePageId || undefined ,
@@ -1171,6 +1198,7 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
11711198 spaceId : { type : 'string' , description : 'Space identifier' } ,
11721199 blogPostId : { type : 'string' , description : 'Blog post identifier' } ,
11731200 versionNumber : { type : 'number' , description : 'Page version number' } ,
1201+ accountId : { type : 'string' , description : 'Atlassian account ID' } ,
11741202 propertyKey : { type : 'string' , description : 'Property key/name' } ,
11751203 propertyValue : { type : 'json' , description : 'Property value (JSON)' } ,
11761204 title : { type : 'string' , description : 'Page or blog post title' } ,
@@ -1242,6 +1270,13 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
12421270 propertyId : { type : 'string' , description : 'Property identifier' } ,
12431271 propertyKey : { type : 'string' , description : 'Property key' } ,
12441272 propertyValue : { type : 'json' , description : 'Property value' } ,
1273+ // User Results
1274+ accountId : { type : 'string' , description : 'Atlassian account ID' } ,
1275+ displayName : { type : 'string' , description : 'User display name' } ,
1276+ email : { type : 'string' , description : 'User email address' } ,
1277+ accountType : { type : 'string' , description : 'Account type (atlassian, app, customer)' } ,
1278+ profilePicture : { type : 'string' , description : 'Path to user profile picture' } ,
1279+ publicName : { type : 'string' , description : 'User public name' } ,
12451280 // Pagination
12461281 nextCursor : { type : 'string' , description : 'Cursor for fetching next page of results' } ,
12471282 } ,
0 commit comments