Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,22 @@ The connector schema is drawn from available variables in the Zoom User API and
<td>The user's last name.
</td>
</tr>
<tr>
<td>DEPT
</td>
<td>String
</td>
<td>The user's department.
</td>
</tr>
<tr>
<td>JOB_TITLE
</td>
<td>String
</td>
<td>The user's job title.
</td>
</tr>
<tr>
<td>LANGUAGE
</td>
Expand Down Expand Up @@ -622,4 +638,4 @@ If more than 3 attempts are made to change a user's address within a 24 hour per
3. [Zoom User API](https://developers.zoom.us/docs/api/rest/reference/user/methods/#tag/Users)
4. [Zoom Phone User API](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#tag/Users)
5. [Zoom Site API ](https://developers.zoom.us/docs/zoom-phone/apis/#tag/Sites)
6. [List of Zoom Phone Calling Plans](https://developers.zoom.us/docs/api/rest/other-references/calling-plans/)
6. [List of Zoom Phone Calling Plans](https://developers.zoom.us/docs/api/rest/other-references/calling-plans/)
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public Set<ConnectorAttribute> getConnectorAttributes() {
result.add(new ConnectorAttribute(FIRST_NAME.name(), STRING));
result.add(new ConnectorAttribute(LAST_NAME.name(), STRING));
result.add(new ConnectorAttribute(Name.NAME, EMAIL.name(), STRING, REQUIRED));
result.add(new ConnectorAttribute(DEPT.name(), STRING));
result.add(new ConnectorAttribute(JOB_TITLE.name(), STRING));

result.add(new ConnectorAttribute(PASSWORD.name(), STRING, NOT_UPDATEABLE));
result.add(new ConnectorAttribute(LANGUAGE.name(), STRING));
Expand Down Expand Up @@ -97,6 +99,9 @@ protected ZoomUser constructModel(
AdapterValueTypeConverter.getSingleAttributeValue(String.class, attributes, EMAIL));
}

user.setDept(AdapterValueTypeConverter.getSingleAttributeValue(String.class, attributes, DEPT));
user.setJobTitle(AdapterValueTypeConverter.getSingleAttributeValue(String.class, attributes, JOB_TITLE));

user.setTimezone(
AdapterValueTypeConverter.getSingleAttributeValue(String.class, attributes, TIME_ZONE));

Expand Down Expand Up @@ -199,6 +204,8 @@ protected Set<Attribute> constructAttributes(ZoomUser user) {
attributes.add(AttributeBuilder.build(TIME_ZONE.name(), user.getTimezone()));

attributes.add(AttributeBuilder.build(TYPE.name(), user.getType()));
attributes.add(AttributeBuilder.build(DEPT.name(), user.getDept()));
attributes.add(AttributeBuilder.build(JOB_TITLE.name(), user.getJobTitle()));
attributes.add(AttributeBuilder.build(PHONE_NUMBER.name(), user.getPhoneNumber()));
attributes.add(AttributeBuilder.build(PHONE_COUNTRY.name(), user.getPhoneCountry()));
attributes.add(AttributeBuilder.build(CREATED_AT.name(), user.getCreatedAt()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public enum ZoomUserAttribute {
FIRST_NAME,
LAST_NAME,
EMAIL,
DEPT,
JOB_TITLE,
PASSWORD,
LANGUAGE,
TIME_ZONE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ZoomUser implements IdentityModel {

@SerializedName("created_at")
private String createdAt;

private String dept;
private String email;
private ZoomFeature feature;

Expand All @@ -37,6 +37,8 @@ public class ZoomUser implements IdentityModel {
private transient Set<String> groupsToAdd;
private transient Set<String> groupsToRemove;
private String id;
@SerializedName("job_title")
private String jobTitle;
private transient ZoomPhoneUserProfile outboundAdd;
private transient ZoomPhoneUserProfile outboundRemove;
private String language;
Expand Down Expand Up @@ -68,6 +70,10 @@ public class ZoomUser implements IdentityModel {
public String getCreatedAt() {
return createdAt;
}

public String getDept() {
return dept;
}

public String getEmail() {
return email;
Expand Down Expand Up @@ -106,6 +112,10 @@ public String getIdentityIdValue() {
public String getIdentityNameValue() {
return getEmail();
}

public String getJobTitle() {
return jobTitle;
}

public ZoomPhoneUserProfile getOutboundAdd() {
return outboundAdd;
Expand Down Expand Up @@ -170,6 +180,10 @@ public String getVerified() {
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}

public void setDept(String dept) {
this.dept = dept;
}

public void setEmail(String email) {
this.email = email;
Expand Down Expand Up @@ -199,6 +213,10 @@ public void setId(String id) {
this.id = id;
}

public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}

public void setOutboundAdd(ZoomPhoneUserProfile outboundAdd) {
this.outboundAdd = outboundAdd;
}
Expand Down