Skip to content

Commit eda4d65

Browse files
author
Stefan Endrullis
committed
add User property subAdminGroups
1 parent e588267 commit eda4d65

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Version 14.1.0
44
- 2025-10-22
5-
- Add User properties: lastLogin, backend, language, and locale
5+
- Add User properties: lastLogin, backend, language, locale, and subAdminGroups
66

77
## Version 14.0.0
88
- 2025-10-21

src/main/java/org/aarboard/nextcloud/api/provisioning/User.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.aarboard.nextcloud.api.provisioning;
1818

1919
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20+
import com.fasterxml.jackson.annotation.JsonProperty;
2021

2122
import java.util.List;
2223

@@ -31,6 +32,8 @@ public class User
3132
private boolean enabled;
3233
private long lastLogin;
3334
private String backend;
35+
@JsonProperty("subadmin")
36+
private List<String> subAdminGroups;
3437
private String email;
3538
private String displayname;
3639
private String phone;
@@ -58,6 +61,15 @@ public String getBackend() {
5861
return backend;
5962
}
6063

64+
/**
65+
* Returns the list of groups the user is a sub-admin of.
66+
*
67+
* @return the list of groups the user is a sub-admin of
68+
*/
69+
public List<String> getSubAdminGroups() {
70+
return subAdminGroups;
71+
}
72+
6173
public String getEmail() {
6274
return email;
6375
}

0 commit comments

Comments
 (0)